ardour/tools/linux_packaging/noderun

24 lines
659 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
cd $BASE || exit 1
git pull || exit 1
./waf configure $* --strict --noconfirm --also-libdir=$HOME/a3/inst/lib --also-include=$HOME/gtk/inst/include --with-backends=jack,alsa || exit 1
./waf || exit 1
cd tools/linux_packaging || exit 1
./build --public --harvid --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