Modified ld flags on SunOS changed -O2 to -O
[blender.git] / extern / ode / dist / tools / make_distribution
1 #!/bin/sh
2
3 VER=0.03
4 # VER=`date +%y%m%d`
5
6 if [ ! -f ode/src/ode.cpp ]; then
7   echo "run this from the ODE root directory"
8   exit 1
9 fi
10
11 ODE_DIR=`pwd`
12
13 cd /tmp
14 if [ -d /tmp/ode-$VER ]; then
15   echo "remove /tmp/ode-$VER first"
16   exit 1
17 fi
18
19 mkdir /tmp/ode-$VER
20 cp -av $ODE_DIR/* /tmp/ode-$VER
21 find /tmp/ode-$VER -type d -name CVS -exec rm -rf {} \; -print
22 find /tmp/ode-$VER -type f -name *~ -exec rm -f {} \; -print
23 rmdir /tmp/ode-$VER/build
24
25 cd /tmp/ode-$VER
26 make clean
27 cp config/user-settings.example config/user-settings
28
29 cd ode/doc
30 ./doccer ode.doc > ode.html
31
32 cd /tmp/ode-$VER
33 echo -e "\n\nMake any modifications you want, then exit the shell:"
34 bash
35
36 cd /tmp
37 tar cfvz ode-$VER.tgz ode-$VER
38 rm -rf /tmp/ode-$VER
39
40 echo -e "\ntype <return> to exit or 'c' to copy to q12"
41 read Q
42 if [ $Q ]; then
43   echo copying...
44   scp1 ode-$VER.tgz q12.org:~/q12/ode/release/
45 fi