2011-03-21 15:00:30 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-03-23 16:54:54 -04:00
|
|
|
BASE=$(readlink -f $0)
|
|
|
|
BASE=$(dirname $BASE) # up one
|
|
|
|
BASE=$(dirname $BASE) # up one more
|
2011-03-23 16:55:59 -04:00
|
|
|
BASE=$(dirname $BASE) # up again
|
2011-03-21 15:00:30 -04:00
|
|
|
|
2011-03-21 17:28:43 -04:00
|
|
|
if mount | grep --silent vmshare ; then
|
2011-03-21 17:29:18 -04:00
|
|
|
sudo mount -t vboxsf vmshare $HOME/vmshare
|
2011-03-21 17:28:43 -04:00
|
|
|
fi
|
|
|
|
|
2011-03-21 15:00:30 -04:00
|
|
|
cd $BASE || exit 1
|
|
|
|
svn update || exit 1
|
2012-05-03 23:36:09 -04:00
|
|
|
./waf configure --strict --noconfirm --also-libdir=$HOME/a3/inst/include --also-include=$HOME/gtk/inst/lib || exit 1
|
2011-03-21 15:00:30 -04:00
|
|
|
./waf || exit 1
|
|
|
|
cd tools/linux_packaging || exit 1
|
2011-04-01 14:49:18 -04:00
|
|
|
./build --public --strip some || exit 1
|
2011-05-25 18:13:24 -04:00
|
|
|
./package --public --singlearch || exit 1
|
2011-03-25 17:49:01 -04:00
|
|
|
file=`ls -t *.tar`
|
2011-03-21 17:29:18 -04:00
|
|
|
echo "Copying $file to shared folder ..."
|
2011-03-21 18:17:11 -04:00
|
|
|
sudo cp $file $HOME/vmshare || exit 1
|
2011-03-21 15:00:30 -04:00
|
|
|
|
2011-03-21 15:12:54 -04:00
|
|
|
exit 0
|