diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-04-06 04:19:31 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2008-04-06 04:19:31 +0000 |
commit | c57c6279afc76ac2e1b7f31bab6c5f21043e8bd8 (patch) | |
tree | f02970cb01c480d81dbcc4f8e8bd1cc064278f64 /scripts/auto-build | |
parent | 1a65d042062d50630bf9a479227d98fe0557bf96 (diff) |
added support for arduino builds
svn path=/trunk/; revision=9678
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-x | scripts/auto-build/prep-auto-build-upload | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload index 145a0ffe..fc086428 100755 --- a/scripts/auto-build/prep-auto-build-upload +++ b/scripts/auto-build/prep-auto-build-upload @@ -1,24 +1,33 @@ #!/bin/sh -# prepare a directory per date for the auto-builders to upload to -# the source dir where this script is -SCRIPT_DIR=`echo $0 | sed 's|\(.*\)/.*$|\1|'` -. $SCRIPT_DIR/auto-build-common +# prepare a directory per date for the auto-builders to upload to -# the name of this script +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 -BUILD_ROOT="/var/www/auto-build" -TODAYS_ROOT="${BUILD_ROOT}/${DATE}" +#BUILD_ROOT="/var/www/auto-build" -chown -R root.root "${BUILD_ROOT}" >> $LOGFILE 2>&1 -mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1 -mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1 -chown -R nobody.nogroup "${TODAYS_ROOT}" >> $LOGFILE 2>&1 +prep_project() +{ + PROJECT=$1 + BUILD_ROOT="$2" + TODAYS_ROOT="${BUILD_ROOT}/${DATE}" + chown -R root.root "${BUILD_ROOT}" >> $LOGFILE 2>&1 + mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1 + mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1 + chown -R nobody.nogroup "${TODAYS_ROOT}" >> $LOGFILE 2>&1 + + rm -f -- ${BUILD_ROOT}/latest >> $LOGFILE 2>&1 + ln -s ${TODAYS_ROOT} ${BUILD_ROOT}/latest >> $LOGFILE 2>&1 + + chown -R ${PROJECT}.${PROJECT} /home/${PROJECT}/ >> $LOGFILE 2>&1 + chmod -R u+rw /home/${PROJECT}/ >> $LOGFILE 2>&1 +} -rm -f -- ${BUILD_ROOT}/latest >> $LOGFILE 2>&1 -ln -s ${TODAYS_ROOT} ${BUILD_ROOT}/latest >> $LOGFILE 2>&1 -chown -R pd.pd /home/pd/ >> $LOGFILE 2>&1 -chmod -R u+rw /home/pd/ >> $LOGFILE 2>&1 +prep_project pd /var/www/auto-build +prep_project arduino /var/www/arduino |