[PD-cvs] scripts/auto-build run-automated-builder,1.10,1.11
Hans-Christoph Steiner
eighthave at users.sourceforge.net
Mon Sep 25 17:39:08 CEST 2006
Update of /cvsroot/pure-data/scripts/auto-build
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16455
Modified Files:
run-automated-builder
Log Message:
redirected email to pd-cvs; made this script run as the 'pd' user
Index: run-automated-builder
===================================================================
RCS file: /cvsroot/pure-data/scripts/auto-build/run-automated-builder,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** run-automated-builder 22 Aug 2006 13:49:35 -0000 1.10
--- run-automated-builder 25 Sep 2006 15:39:05 -0000 1.11
***************
*** 1,5 ****
#!/bin/sh
! HOSTNAME=`hostname`
SYSTEM=`uname -s`
DATE=`date +%Y-%m-%d`
--- 1,5 ----
#!/bin/sh
! HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|'`
SYSTEM=`uname -s`
DATE=`date +%Y-%m-%d`
***************
*** 7,10 ****
--- 7,12 ----
SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'`
+ RECIPIENT=pd-cvs at iem.at
+
run_build_script ()
{
***************
*** 14,18 ****
touch ${LOGFILE}
! su pd -c "sh /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh" >> $LOGFILE 2>&1
rsync -a ${LOGFILE} rsync://128.238.56.50/upload/${DATE}/logs/
--- 16,20 ----
touch ${LOGFILE}
! sh /home/pd/auto-build/${distro}/scripts/auto-build/${distro}-auto-builder.sh >> $LOGFILE 2>&1
rsync -a ${LOGFILE} rsync://128.238.56.50/upload/${DATE}/logs/
***************
*** 21,26 ****
completion_test=`tail -1 ${LOGFILE}`
if [ "x${completion_test}" != "xSUCCESS" ]; then
! SUBJECT="$HOSTNAME Pd-$SYSTEM $distro build results $DATE $TIME"
! tail -200 ${LOGFILE} | mail -s "${SUBJECT}" hans at eds.org
fi
}
--- 23,28 ----
completion_test=`tail -1 ${LOGFILE}`
if [ "x${completion_test}" != "xSUCCESS" ]; then
! SUBJECT="autobuild: $distro $HOSTNAME $DATE $TIME"
! tail -200 ${LOGFILE} | mail -s "${SUBJECT}" ${RECIPIENT}
fi
}
More information about the Pd-cvs
mailing list