2348db874e716548d9e74febe768203d86a98784
[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         cp $cwd/util/ranlib.sh .
25         chmod +x ranlib.sh
26
27         if [ -d asm ]; then
28                 mkdir asm/perlasm
29                 cp $cwd/crypto/perlasm/*.pl asm/perlasm
30         fi
31         cd ..
32         tar cf - $name|gzip >$name.tgz
33 #       /bin/rm -fr $name
34         cd $cwd
35 done
36
37