X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=buildd%2Fcronjob.sh;fp=buildd%2Fcronjob.sh;h=80b63d45efa8519da7feef8bae6af93853c1eae9;hb=8194543299a213d9597b85d726fe2085064dfcc7;hp=0000000000000000000000000000000000000000;hpb=86fd4080bbd6cc6b6729045639308403f65e606f;p=grml-live.git diff --git a/buildd/cronjob.sh b/buildd/cronjob.sh new file mode 100644 index 0000000..80b63d4 --- /dev/null +++ b/buildd/cronjob.sh @@ -0,0 +1,47 @@ +#!/bin/sh +# Filename: cronjob.sh +# Purpose: example for a grml-live buildd cronjob setup +# 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. +################################################################################ +# Add something like that to the crontab to execute grml-live buildd +# every day at a specific time: +# 30 1 * * * /usr/share/grml-live/buildd/cronjob.sh +################################################################################ + +if [ -r /usr/share/grml-live/buildd/buildd_running ] ; then + echo "already running instance of grml-live buildd found, exiting.">&2 + echo "if you think this is not true: rm /usr/share/grml-live/buildd/buildd_running">&2 + exit 1 +fi + +echo $$ > /usr/share/grml-live/buildd/buildd_running + +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-small_lenny.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-small_squeeze.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-small_sid.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-small_lenny.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-small_squeeze.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-small_sid.sh + +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-medium_lenny.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-medium_squeeze.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-medium_sid.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-medium_lenny.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-medium_squeeze.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-medium_sid.sh + +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-large_lenny.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-large_squeeze.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml64-large_sid.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-large_lenny.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-large_squeeze.sh && \ +/usr/share/grml-live/buildd/grml-live_autobuild_grml-large_sid.sh + +/usr/share/grml-live/buildd/upload_isos.sh && \ +/usr/share/grml-live/buildd/remove_isos.sh + +rm -f /usr/share/grml-live/buildd/buildd_running + +## END OF FILE #################################################################