#!/bin/sh set=$(date -u +%Y%m%d%H%M) logdir=~/draklive-logs mkdir -p $logdir exec &>$logdir/draklive-$set.log set -x archs="i586" #archs="i586 x86_64" desktops="KDE4 GNOME" #desktops="KDE4" regions="europe1-americas europe2 africa-india asia-noindia" #regions="int" #regions="europe1-americas" draklive_config=$(dirname $(dirname $0)) #draklive_config=/home/blino/live-config/ steps="--clean --all" #steps="--boot --loop --master" draklive_cmd="sudo draklive --config-root $draklive_config" #draklive_cmd="sudo -u draklive sudo perl -I./draklive/lib ./draklive/draklive --config-root $draklive_config" # clean old build sets, keeping only sets from previous day and dist (iso + lists) for all sets find /var/lib/draklive/{chroot/*,build/*/*} -maxdepth 0 -mtime +0 -not -name dist -exec rm -rf {} \; start=$(date) for arch in $archs; do for desktop in $desktops; do for region in $regions; do time $draklive_cmd $steps --define arch=$arch --define desktop=$desktop --define region=$region --define set=$set done done done echo set $set echo $start echo $(date)