blob: bed1e5410996433000b7c69e01b4c065e3b1db36 (
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
|
#!/bin/sh
HOSTNAME=`hostname`
SYSTEM=`uname -s`
DATE=`date +%Y-%m-%d`
TIME=`date +%H.%M.%S`
SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
run_build_script ()
{
distro=$1
LOGFILE=/home/pd/logs/${DATE}_${TIME}_-_${SYSTEM}_-_${distro}_-_${SCRIPT}.txt
touch ${LOGFILE}
chmod a+x /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh\
>> $LOGFILE 2>&1
su pd -c /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh\
>> $LOGFILE 2>&1
# send status report
SUBJECT="$HOSTNAME Pd-$SYSTEM $distro build results $DATE $TIME"
tail -200 ${LOGFILE} | mail -s "${SUBJECT}" hans@eds.org
}
run_build_script pd-main
run_build_script pd-extended
run_build_script pd-devel
|