From a0918ef02d872264330cdc89e6f24894dfb78498 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 5 Apr 2008 22:58:55 +0000 Subject: [PATCH] first stab at scripts to set up the rsync repository for auto-builds --- build/auto-build/arduino-rsync-checkout | 19 ++++++++++++++++ build/auto-build/auto-build-common | 29 +++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100755 build/auto-build/arduino-rsync-checkout create mode 100644 build/auto-build/auto-build-common diff --git a/build/auto-build/arduino-rsync-checkout b/build/auto-build/arduino-rsync-checkout new file mode 100755 index 000000000..d6469729b --- /dev/null +++ b/build/auto-build/arduino-rsync-checkout @@ -0,0 +1,19 @@ +#!/bin/sh +# update from the Berlios SVN repository + +# the source dir where this script is +SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` +. $SCRIPT_DIR/auto-build-common + +# the name of this script +SCRIPT=`echo $0| sed 's|.*/\(.*\)|\1|g'` +LOGFILE=/home/arduino/logs/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt + +touch $LOGFILE + +for dir in /home/arduino/rsync/*; do + dirname=`echo $dir | sed 's|.*/\(.*\)|\1|'` + echo $dirname ---------------------------- >> ${LOGFILE} + cd $dir + svn up >> ${LOGFILE} +done diff --git a/build/auto-build/auto-build-common b/build/auto-build/auto-build-common new file mode 100644 index 000000000..73134d51f --- /dev/null +++ b/build/auto-build/auto-build-common @@ -0,0 +1,29 @@ +# these are common variables for the auto-build scripts + +HOSTNAME=`hostname | sed 's|\([a-zA-Z0-9-]\)\..*|\1|' | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|'` +SYSTEM=`uname -s | sed 'y|ABCDEFGHIJKLMNOPQRSTUVWXYZ|abcdefghijklmnopqrstuvwxyz|'` +DATE=`date +%Y-%m-%d` +TIME=`date +%H.%M.%S` + +## the following creates a spam-bot that sends emails to an address that has not asked for it +## because of the spam-problem, i (jmz) have disabled it +# recipient of any emails set from the scripts +#RECIPIENT=pd-cvs@iem.at + + +## if you want to send emails about the success of your build, +## please create a file "auto-build-common.local" in this directory +## and set the "RECIPIENT" address to some valid email-address +# +## please do NOT check your auto-build-common.local into the CVS +# +## another possibility is to set the "RECIPIENT" environmental variable before running +## the autobuilder + +if [ -e ${SCRIPT_DIR}/auto-build-common.local ]; then + . ${SCRIPT_DIR}/auto-build-common.local +else + echo "Could not find local configuration in \"${SCRIPT_DIR}/auto-build-common.local\"" + echo "Skipping... (see ${SCRIPT_DIR}/auto-build-common for instructions)" + echo +fi