improve clarity of instructions
[openssl.git] / util / sep_lib.sh
1 #!/bin/sh
2
3 cwd=`pwd`
4 /bin/rm -fr tmp/*
5
6 cd crypto/des
7 make -f Makefile.uni tar
8 make -f Makefile.uni tar_lit
9 /bin/mv libdes.tgz $cwd/tmp
10 /bin/mv libdes-l.tgz $cwd/tmp
11 cd $cwd
12
13 for name in md5 sha cast bf idea rc4 rc2
14 do
15         echo doing $name
16         (cd crypto; tar cfh - $name)|(cd tmp; tar xf -)
17         cd tmp/$name
18         /bin/rm -f Makefile
19         /bin/rm -f Makefile.ssl
20         /bin/rm -f Makefile.ssl.orig
21         /bin/rm -f *.old
22         /bin/mv Makefile.uni Makefile
23
24         if [ -d asm ]; then
25                 mkdir asm/perlasm
26                 cp $cwd/crypto/perlasm/*.pl asm/perlasm
27         fi
28         cd ..
29         tar cf - $name|gzip >$name.tgz
30 #       /bin/rm -fr $name
31         cd $cwd
32 done
33
34