#!/bin/sh
#
# script for setting up cross-ssl directory

if [ ! -d download ] ; then
	echo creating 'download/'
	mkdir download
fi

if [ ! -d cross-ssl ] ; then
	echo creating 'cross-ssl/'
	mkdir cross-ssl
fi

if [ ! -e download/openssl-0.9.8j-gcc2-2009-01-28.zip ] ; then
	echo downloading openssl-0.9.8
	wget -nv -O download/openssl-0.9.8j-gcc2-2009-01-28.zip http://haiku-files.org/files/optional-packages/openssl-0.9.8j-gcc2-2009-01-28.zip
fi

if [ ! -e cross-ssl/common/lib/libcrypto.so.0.9.8 ] ; then
	unzip -n -d cross-ssl  download/openssl-0.9.8j-gcc2-2009-01-28.zip	
fi