1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
#!/bin/sh
#
# create a $PWGUI/lib directory if it doesn't exist
#
here=$(pwd)
if [ ! -d lib ]; then
mkdir lib
fi
if [ -d lib/Guib-* ]; then
rm -rf lib/Guib-*
fi
#
# create a complete Guib archive out of SVN + plus add the TclTkLib
#
cd ..
if [ -d Guib ]; then
echo "
*** WARNING ***
the directory ../Guib exists, cannot proceed due to security reasons !!!
*** STOPPING ...
"
exit 1
fi
svn co Guib >& /dev/null
cd Guib
guib_root=$(pwd)
version=$(cat VERSION)
make clean
make
cd $here/lib
tar zxvf $guib_root/guib-$version.tgz
rm -rf $guib_root
exit 0
|