summaryrefslogtreecommitdiffstats
path: root/tools/build_live.sh
blob: c0f082e53078c217e8cb67d26fbdca727d7913cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh

set=$(date -u +%Y%m%d%H%M)

logdir=~/draklive-logs
mkdir -p $logdir
exec &>$logdir/draklive-$set.log

echo "tmb is doing manual builds right now, so no auto build allowed for tonight"
exit 0

set -x

#archs="i586"
archs="i586 x86_64"
desktops="KDE4 GNOME"
#desktops="KDE4"
#regions="Europe1-Americas Europe2 Africa-India Asia-no-India"
#regions="all"
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"

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)