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
|
2011-03-21 15:12:54 -04:00
|
|
|
./waf configure --strict --noconfirm || exit 1
|
2011-03-21 15:00:30 -04:00
|
|
|
./waf || exit 1
|
|
|
|
cd tools/linux_packaging || exit 1
|
2011-03-21 16:47:28 -04:00
|
|
|
./build --public --nostrip || exit 1
|
2011-03-25 17:49:01 -04:00
|
|
|
./package --public --nostrip --singlearch || exit 1
|
|
|
|
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
|