summaryrefslogtreecommitdiff
path: root/debian/cron.daily
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cron.daily')
-rw-r--r--debian/cron.daily103
1 files changed, 0 insertions, 103 deletions
diff --git a/debian/cron.daily b/debian/cron.daily
deleted file mode 100644
index db65e90..0000000
--- a/debian/cron.daily
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/bin/sh
-
-# Check for make-live executable
-if [ ! -x /usr/sbin/make-live ]
-then
- exit 0
-fi
-
-# Check for make-live default
-if [ -r /etc/default/make-live ]
-then
- . /etc/default/make-live
-else
- echo "E: /etc/default/make-live missing."
- exit 1
-fi
-
-# Check for autobuild
-if [ "${AUTOBUILD}" = "false" ]
-then
- exit 0
-fi
-
-# Check for build directory
-if [ ! -d "${AUTOBUILD_DIRECTORY}" ]
-then
- mkdir -p "${AUTOBUILD_DIRECTORY}"
-else
- # FIXME: maybe we should just remove the left overs.
- echo "E: ${AUTOBUILD_DIRECTORY} needs cleanup."
- exit 1
-fi
-
-# Process image autobuilding
-cd "${AUTOBUILD_DIRECTORY}"
-
-for AUTOBUILD_DISTRIBUTION in ${AUTOBUILD_DISTRIBUTIONS}
-do
- for AUTOBUILD_PACKAGE_LIST in ${AUTOBUILD_PACKAGE_LISTS}
- do
- if [ ! -f "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}_${AUTOBUILD_DATE}-iso-log.txt ]
- then
- # Generating images
- mkdir debian-live
- make-live -t iso -d ${AUTOBUILD_DISTRIBUTION} -p ${AUTOBUILD_PACKAGE_LIST} -m ${LIVE_MIRROR} ${AUTOBUILD_OPTIONS} > debian-live/log.txt 2>&1
- fi
-
- if [ -f debian-live/binary.iso ] && [ -f debian-live/source.iso ]
- then
- # Moving logs
- mkdir -p "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log
- mv debian-live/log.txt "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}_${AUTOBUILD_DATE}-iso-log.txt
- mv debian-live/packages.txt "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}_${AUTOBUILD_DATE}-iso-packages.txt
-
- # Moving images
- mkdir -p "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/${AUTOBUILD_ARCHITECTURE}
- mv debian-live/binary.iso "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/${AUTOBUILD_ARCHITECTURE}/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}.iso
-
- mkdir -p "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/source
- mv debian-live/source.iso "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/source/debian-live-${AUTOBUILD_DISTRIBUTION}-source-${AUTOBUILD_PACKAGE_LIST}.iso
- fi
-
- # Cleanup
- rm -rf debian-live
-
- if [ ! -f "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}_${AUTOBUILD_DATE}-usb-log.txt ]
- then
- # Generating images
- mkdir debian-live
- make-live -t usb -d ${AUTOBUILD_DISTRIBUTION} -p ${AUTOBUILD_PACKAGE_LIST} -m ${LIVE_MIRROR} ${AUTOBUILD_OPTIONS} > debian-live/log.txt 2>&1
- fi
-
- if [ -f debian-live/binary.img ]
- then
- # Moving logs
- mkdir -p "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log
- mv debian-live/log.txt "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}_${AUTOBUILD_DATE}-usb-log.txt
- mv debian-live/packages.txt "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/log/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}_${AUTOBUILD_DATE}-usb-packages.txt
-
- # Moving images
- mkdir -p "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/${AUTOBUILD_ARCHITECTURE}
- mv debian-live/binary.img "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/${AUTOBUILD_ARCHITECTURE}/debian-live-${AUTOBUILD_DISTRIBUTION}-${AUTOBUILD_ARCHITECTURE}-${AUTOBUILD_PACKAGE_LIST}.img
- fi
-
- # Cleanup
- rm -rf debian-live
- done
-done
-
-# Cleanup
-umount -f "${AUTOBUILD_DIRECTORY}"/debian-live/chroot/proc > /dev/null 2>&1
-rm -rf "${AUTOBUILD_DIRECTORY}"
-
-# MD5SUMS
-for DIRECTORY in "${AUTOBUILD_SERVER}"/daily-builds/${AUTOBUILD_DATE}/*
-do
- cd "${DIRECTORY}"
- md5sum * > MD5SUMS
-done
-
-# Current symlink
-rm -f "${AUTOBUILD_SERVER}"/daily-builds/current
-ln -s ${AUTOBUILD_DATE} "${AUTOBUILD_SERVER}"/daily-builds/current