2011-03-21 15:00:30 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
BASE=$1
|
|
|
|
|
|
|
|
if [ x$BASE = "x" ] ; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
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-21 15:00:30 -04:00
|
|
|
file=`ls -t *.bz2 | head -1`
|
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
|