diff options
Diffstat (limited to 'scripts/auto-build')
-rwxr-xr-x | scripts/auto-build/mail-mingw-log-hack.sh | 2 | ||||
-rwxr-xr-x | scripts/auto-build/prep-auto-build-upload | 31 |
2 files changed, 10 insertions, 23 deletions
diff --git a/scripts/auto-build/mail-mingw-log-hack.sh b/scripts/auto-build/mail-mingw-log-hack.sh index 30b237bc..0819bc05 100755 --- a/scripts/auto-build/mail-mingw-log-hack.sh +++ b/scripts/auto-build/mail-mingw-log-hack.sh @@ -17,7 +17,7 @@ mailbody_on_failure () { } -for logfile in $(ls -1 /var/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.txt); do +for logfile in $(ls -1 /home/apt/www/auto-build/${DATE}/logs/${DATE}_*_mingw*.txt); do completion_test=$(tail -1 "${logfile}") if [ "x${completion_test}" != "xSUCCESS" ]; then if [ "x${RECIPIENT}" != "x" ]; then diff --git a/scripts/auto-build/prep-auto-build-upload b/scripts/auto-build/prep-auto-build-upload index 0bcc1234..402bb0c3 100755 --- a/scripts/auto-build/prep-auto-build-upload +++ b/scripts/auto-build/prep-auto-build-upload @@ -2,30 +2,17 @@ # 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 +LOGFILE=/tmp/${DATE}_${TIME}_-_${SCRIPT}_-_${SYSTEM}.txt -#BUILD_ROOT="/var/www/auto-build" - -prep_project() -{ - PROJECT=$1 - BUILD_ROOT="$2" - TODAYS_ROOT="${BUILD_ROOT}/${DATE}" - chown -R root.root "${BUILD_ROOT}" >> $LOGFILE 2>&1 - chown -R pd "${BUILD_ROOT}/latest" >> $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 - - chown -R ${PROJECT}.${PROJECT} /home/${PROJECT}/ >> $LOGFILE 2>&1 - chmod -R u+rw /home/${PROJECT}/ >> $LOGFILE 2>&1 -} - - -prep_project pd /var/www/auto-build -prep_project arduino /var/www/arduino +BUILD_ROOT=/home/apt/www/auto-build +TODAYS_ROOT="${BUILD_ROOT}/${DATE}" +mkdir "${TODAYS_ROOT}" >> $LOGFILE 2>&1 +mkdir "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1 +chmod -R a+r "${BUILD_ROOT}" >> $LOGFILE 2>&1 +chmod -R a-w "${BUILD_ROOT}" >> $LOGFILE 2>&1 +chmod 0755 "${TODAYS_ROOT}" >> $LOGFILE 2>&1 +mkdir 0755 "${TODAYS_ROOT}/logs" >> $LOGFILE 2>&1 |