aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/run-automated-builder
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-31 04:42:45 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-07-31 04:42:45 +0000
commit8198c6066b52695ccbbde769293bc7b9d776f345 (patch)
treed34444ea2058d9810343749a9fc733ed9db5b9c3 /scripts/auto-build/run-automated-builder
parent6879959a42e9691a2bf9cf319d1f4153409c06b0 (diff)
working scripts from compile farm master, pd-debian-stable
svn path=/trunk/; revision=5439
Diffstat (limited to 'scripts/auto-build/run-automated-builder')
-rwxr-xr-xscripts/auto-build/run-automated-builder22
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/auto-build/run-automated-builder b/scripts/auto-build/run-automated-builder
new file mode 100755
index 00000000..6eceaeff
--- /dev/null
+++ b/scripts/auto-build/run-automated-builder
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+HOSTNAME=`hostname`
+SYSTEM=`uname -s`
+DATE=`date +%Y-%m-%d`
+TIME=`date +%H.%M.%S`
+SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
+LOGFILE=/home/pd/logs/${DATE}_-_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt
+
+touch ${LOGFILE}
+
+su - pd -c /home/pd/auto-build/scripts/automated-builder.sh >> $LOGFILE 2>&1
+
+# upload files to webpage
+rsync -a /home/pd/auto-build/packages/linux_make/build/Pd*.tar.bz2 rsync://128.238.56.50/upload/${DATE}/`ls -1 /home/pd/auto-build/packages/linux_make/build/Pd*.tar.bz2 | sed "s|.*/\(.*\)tar\.bz2|\1${HOSTNAME}.tar.bz2|"` >> $LOGFILE 2>&1
+
+# send status report
+SUBJECT="$HOSTNAME Pd-$SYSTEM build results $DATE $TIME"
+tail -200 ${LOG_FILE} | mail -s "${SUBJECT}" hans@eds.org
+
+
+