aboutsummaryrefslogtreecommitdiff
path: root/scripts/auto-build/prep-auto-build-upload
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-08-03 05:54:03 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2006-08-03 05:54:03 +0000
commit8f4dceb822aa525173c0d38ce735a7afab7f1694 (patch)
treed402d871f9267db36ff77b967d161a1b0ec9aa1b /scripts/auto-build/prep-auto-build-upload
parente6b2a681e3d661202d754ba22fe7171ffbb55179 (diff)
extended auto-builds to allow for building multiple distros, and included a pd-MAIN distro, which seems to work. We'll see...
svn path=/trunk/; revision=5468
Diffstat (limited to 'scripts/auto-build/prep-auto-build-upload')
-rwxr-xr-xscripts/auto-build/prep-auto-build-upload12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload
index f99fc111..59cc6c56 100755
--- a/scripts/auto-build/prep-auto-build-upload
+++ b/scripts/auto-build/prep-auto-build-upload
@@ -2,13 +2,19 @@
# prepare a directory per date for the auto-builders to upload to
+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}"
-chown -R root.root "${BUILD_ROOT}"
-mkdir "${TODAYS_ROOT}"
-chown nobody.nogroup "${TODAYS_ROOT}"
+chown -R root.root "${BUILD_ROOT}" >> $LOGFILE 2>&1
+mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1
+chown nobody.nogroup "${TODAYS_ROOT}" >> $LOGFILE 2>&1
+chown -R pd /home/pd >> $LOGFILE 2>&1
+chmod -R u+rw /home/pd >> $LOGFILE 2>&1