ardour/tools/linux_packaging/noderun
Paul Davis d5a9c40576 2.X-ify noderun, part four
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@12685 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-12 20:13:11 +00:00

24 lines
583 B
Bash

#!/bin/sh
BASE=$(readlink -f $0)
BASE=$(dirname $BASE) # up one
BASE=$(dirname $BASE) # up one more
BASE=$(dirname $BASE) # up again
if mount | grep --silent vmshare ; then
sudo mount -t vboxsf vmshare $HOME/vmshare
fi
NPROCS=`grep -c processor /proc/cpuinfo`
cd $BASE || exit 1
svn update || exit 1
scons SYSLIBS=1 --config=force -j$NPROCS || exit 1
cd tools/linux_packaging || exit 1
./build --public --strip some || exit 1
./package --public --singlearch || exit 1
file=`ls -t *.tar`
echo "Copying $file to shared folder ..."
sudo cp $file $HOME/vmshare || exit 1
exit 0