force mount of shared folder before build, and copy result there when done
[ardour.git] / tools / linux_packaging / noderun
1 #!/bin/sh
2
3 BASE=$1
4
5 if [ x$BASE = "x" ] ; then 
6    exit 1
7 fi
8
9 if mount | grep --silent vmshare ; then
10     :
11 else
12     sudo mount -t vboxsf vmshare ~/vmshare
13 fi
14
15 cd $BASE || exit 1
16 svn update || exit 1
17 ./waf configure --strict --noconfirm || exit 1
18 ./waf || exit 1
19 cd tools/linux_packaging || exit 1
20 ./build --public --nostrip || exit 1
21 file=`ls -t *.bz2 | head -1`
22 echo "Copying $file to ardour.org ..."
23 scp $file ardour@ardour.org:ardour.org/files || exit 1
24
25 exit 0