X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Fgrml-live_autobuild_grml-large_sid.sh;h=94863d013c4b2f4eeed4e1ad171b6acc3970c22b;hp=3aa1c6031479ec49d8e2a1749a7a283685f27bb9;hb=68b9fb146e8702b2f6a790e3d9486ca36f0d9f76;hpb=81fd4cff970f631c9e464d84d2c71972da5c8fa8 diff --git a/buildd/grml-live_autobuild_grml-large_sid.sh b/buildd/grml-live_autobuild_grml-large_sid.sh index 3aa1c60..94863d0 100755 --- a/buildd/grml-live_autobuild_grml-large_sid.sh +++ b/buildd/grml-live_autobuild_grml-large_sid.sh @@ -1,49 +1,25 @@ #!/bin/sh -set -u - -PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 - -# configuration: +# settings for grml_live_run: DATE=$(date +%Y%m%d) -STORAGE=/srv/ -OUTPUT_DIR="${STORAGE}/grml-live_${DATE}.$$" -TMP_DIR=$(mktemp -d) -MUTT_HEADERS=$(mktemp) -ATTACHMENT=$TMP_DIR/grml-live-logs_$DATE.tar.gz -RECIPIENT=grml-live@ml.grml.org ISO_NAME=grml_sid_$DATE.iso -ISO_DIR=/srv/grml-isos -[ -n "$TMP_DIR" ] || exit 10 -[ -n "$MUTT_HEADERS" ] || exit 20 -echo "my_hdr From: grml-live autobuild daemon " > $MUTT_HEADERS - -# execute grml-live: -grml-live -F -s sid -c GRMLBASE,GRML_FULL,LATEX_CLEANUP,I386 -o $OUTPUT_DIR \ - -g grml -v $DATE -r grml-live-autobuild -i $ISO_NAME \ - 1>${TMP_DIR}/stdout 2>${TMP_DIR}/stderr ; RC=$? - -# create log archive: -tar zcf $ATTACHMENT /var/log/fai/dirinstall/grml 1>/dev/null +SUITE=sid +CLASSES='GRMLBASE,GRML_FULL,LATEX_CLEANUP,RELEASE,I386' +NAME=grml +SCRIPTNAME="$(basename $0)" +ARCH=i386 -ISO_DETAILS=$(ls -lh $OUTPUT_DIR/grml_isos/$ISO_NAME) +. /usr/share/grml-live/buildd/functions.sh || exit 1 -# send status mail: -echo -en "Automatically generated mail by grml-live_autobuild_grml-large_sid.sh +# execute grml-live: +grml_live_run -$ISO_DETAILS +create_logs -Return code of grml-live run was: $RC +iso_details -Find details in the attached logs." | \ -mutt -s "grml-live_autobuild_grml-large_sid.sh [${DATE}] - $RC" \ - -a ${TMP_DIR}/stdout \ - -a ${TMP_DIR}/stderr \ - -a $ATTACHMENT \ - $RECIPIENT +send_mail -# make sure we store the final iso: -[ -d "$ISO_DIR" ] || mkdir "$ISO_DIR" -mv $OUTPUT_DIR/grml_isos/$ISO_NAME $ISO_DIR +store_iso -rm -rf "$TMP_DIR" "$MUTT_HEADERS" "$OUTPUT_DIR" +bailout