#! /bin/sh

#
#  A small shell script to unpack the sources
#  and to remove any links so that the configuration
#  and compiling steps work.
#
#  After unzipped the source package,
#  the links listed in rmlinks.txt must
#  be deleted before the sources can be
#  configured and compiled.  All DOS/DJGPP
#  specific type of links will may make
#  the compiler abort the building.
#


cat > script.sed << EOS
/^lrwx/!d
s/ -> .*$//
s/^l.* openssl-/rm -vf openssl-/
EOS

djtart openssl*.tar.gz | sed -f ./script.sed > rmlinks.txt

djtarx openssl*.tar.gz

. ./rmlinks.txt > ./rmlinks.log 2>&1

rm -f ./rmlinks.txt ./script.sed


