From 07cbca81e7ddcc063f2792983705c49c57d2fa72 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 21 Jun 2012 14:15:30 +0200 Subject: [PATCH] support $LIVE_TYPE --- live_build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/live_build.sh b/live_build.sh index 8bac72b..d8404e4 100755 --- a/live_build.sh +++ b/live_build.sh @@ -3,10 +3,16 @@ 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/ @@ -14,7 +20,7 @@ figlet "success" 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 -- 2.39.5