Provide $FORCE_REBUILD in buildd
authorMichael Prokop <devnull@localhost>
Thu, 25 Oct 2007 23:30:11 +0000 (01:30 +0200)
committerMichael Prokop <devnull@localhost>
Thu, 25 Oct 2007 23:30:11 +0000 (01:30 +0200)
buildd/functions.sh
buildd/grml-buildd.conf

index a1e57df..86063b4 100755 (executable)
@@ -4,7 +4,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # 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 \
index c5c7f51..1657f0d 100644 (file)
@@ -3,7 +3,7 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # 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!
 # 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