no preallocating if there's no state file
[syren.git] / build_redist.sh
blob2e3d88a1120188814fd36e08a69ca00340c23e44
1 #!/bin/zsh
3 ( zsh ./build_all.sh )
5 rm -fr tmp
6 rm -f syren-0.0.6.tar.bz2
7 mkdir -p tmp/syren-0.0.6/bin/win32
8 mkdir -p tmp/syren-0.0.6/bin/linux
9 mkdir -p tmp/syren-0.0.6/src/xyssl
10 mkdir -p tmp/syren-0.0.6/src/mk
11 cp src/*.c tmp/syren-0.0.6/src/
12 cp src/*.h tmp/syren-0.0.6/src/
13 cp src/Jam* tmp/syren-0.0.6/src/
14 cp -R src/xyssl* tmp/syren-0.0.6/src/
15 cp -R mk/* tmp/syren-0.0.6/mk/
16 cp ChangeLog tmp/syren-0.0.6/
17 cp Jam* tmp/syren-0.0.6/
18 cp build_*.sh tmp/syren-0.0.6/
19 cp CREDITS tmp/syren-0.0.6/
20 rm -f tmp/syren-0.0.6/src/*.o
21 rm -f tmp/syren-0.0.6/src/*.a
22 cp syren tmp/syren-0.0.6/bin/linux
23 cp syren_lite tmp/syren-0.0.6/bin/linux
24 ( cd tmp ; tar cvjf syren-0.0.6.tar.bz2 syren-0.0.6 )
25 mv tmp/syren-0.0.6.tar.bz2 ./
26 rm -f redist/syren-0.0.6.tar.bz2
27 mkdir -p redist/
28 mv ./syren-0.0.6.tar.bz2 ./redist/
30 # src
31 rm -fr tmp/syren-0.0.6/bin
32 ( cd tmp ; tar cvjf syren-0.0.6-src.tar.bz2 syren-0.0.6 )
33 mv tmp/syren-0.0.6-src.tar.bz2 ./
34 rm -f redist/syren-0.0.6-src.tar.bz2
35 mv ./syren-0.0.6-src.tar.bz2 ./redist/
37 # bin-linux
38 rm -fr tmp/syren-0.0.6/*
39 cp syren tmp/syren-0.0.6/
40 cp syren_lite tmp/syren-0.0.6/
41 ( cd tmp ; tar cvjf syren-0.0.6-bin-linux.tar.bz2 syren-0.0.6 )
42 mv tmp/syren-0.0.6-bin-linux.tar.bz2 ./
43 rm -f redist/syren-0.0.6-bin-linux.tar.bz2
44 mv ./syren-0.0.6-bin-linux.tar.bz2 ./redist/
47 rm -fr tmp