From db089ea5e632e3b76e70fdee6eb3a7548411ca84 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Fri, 26 Oct 2007 01:30:11 +0200 Subject: [PATCH] Provide $FORCE_REBUILD in buildd --- buildd/functions.sh | 10 ++++++---- buildd/grml-buildd.conf | 6 +++++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/buildd/functions.sh b/buildd/functions.sh index a1e57df..86063b4 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Thu Oct 25 22:40:45 CEST 2007 [mika] +# Latest change: Fri Oct 26 01:29:50 CEST 2007 [mika] ################################################################################ die() { @@ -48,9 +48,11 @@ echo "my_hdr From: grml-live autobuild daemon <$FROM>" > $MUTT_HEADERS # execute grml-live: grml_live_run() { - if [ -f "$ISO_DIR/$ISO_NAME" ] ; then - echo "$ISO_DIR/$ISO_NAME exists already. Nothing to be done, exiting." - exit 0 + if ! [ "$FORCE_REBUILD" = "1" ] ; then + if [ -f "$ISO_DIR/$ISO_NAME" ] ; then + echo "$ISO_DIR/$ISO_NAME exists already. Nothing to be done, exiting." + exit 0 + fi fi grml-live -F $GRML_LIVE_ARCH -s $SUITE -c $CLASSES -o $OUTPUT_DIR \ diff --git a/buildd/grml-buildd.conf b/buildd/grml-buildd.conf index c5c7f51..1657f0d 100644 --- a/buildd/grml-buildd.conf +++ b/buildd/grml-buildd.conf @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2 or any later version. -# Latest change: Mon Oct 22 19:51:57 CEST 2007 [mika] +# Latest change: Fri Oct 26 01:28:27 CEST 2007 [mika] ################################################################################ # where do you want to store chroot/ISOs/...? Must be set! @@ -13,6 +13,10 @@ # default: root@localhost #RECIPIENT=root@localhost +# do you want to force rebuild of already present ISOs? +# Set it to '1' to force rebuild, otherwise use '0'. +FORCE_REBUILD=0 + # what do you want to use for "From:" in notification mails? # default: root@localhost #FROM=root@localhost -- 2.1.4