summaryrefslogtreecommitdiffstats
path: root/tools/build_live.sh
blob: dbed1dbe23fbddef3ce09aa7e033390720398363 (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
#!/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"

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)