set -e
+if [ "$LIVE_TYPE" == "" ] ; then
+ echo 'please supply $LIVE_TYPE environment variable'
+ exit 0
+fi
+
+figlet "building $LIVE_TYPE"
cd pserver.flexible
sudo bash ./lb_build.sh mrproper
-sudo bash ./lb_build.sh
+sudo bash ./lb_build.sh -p $LIVE_TYPE
ls -larth tftpboot/debian-live/amd64/
ls -larth binary/live/
BUILDDATE=$(date +%Y%m%d%H%M)
-BUILD_ID="${BUILDDATE}-${BUILD_NUMBER}"
+BUILD_ID="${LIVE_TYPE}-${BUILDDATE}-${BUILD_NUMBER}"
BUILD_TARGET=/srv/mirror/live-build/$BUILD_ID
mkdir -p $BUILD_TARGET