AUDIT: r20487 - gnucash/trunk/packaging/win32 - Windows nightly build: fix webserver directory creation hack

Geert Janssens gjanssens at code.gnucash.org
Sat Mar 26 06:50:19 EDT 2011


Author: gjanssens
Date: 2011-03-26 06:50:18 -0400 (Sat, 26 Mar 2011)
New Revision: 20487
Trac: http://svn.gnucash.org/trac/changeset/20487

Modified:
   gnucash/trunk/packaging/win32/build_package.sh
Log:
Windows nightly build: fix webserver directory creation hack
BP

Modified: gnucash/trunk/packaging/win32/build_package.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package.sh	2011-03-26 10:12:10 UTC (rev 20486)
+++ gnucash/trunk/packaging/win32/build_package.sh	2011-03-26 10:50:18 UTC (rev 20487)
@@ -7,10 +7,11 @@
 #
 
 set -e
+LOG_DIR=build-logs
 
 function on_error() {
   if [ `hostname` = "gnucash-win32" ]; then
-    scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/build-logs
+    scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/$LOG_DIR
   fi
   exit
 }
@@ -38,11 +39,11 @@
 LOGFILE=${_OUTPUT_DIR}/${LOGFILENAME}
 mkdir -p ${_OUTPUT_DIR}
 
+# Small hack to create $LOG_DIR on the webserver if it doesn't exist yet
 if [ `hostname` = "gnucash-win32" ]; then
-  # Small hack to create the build-logs directory if it doesn't exist yet
-  mkdir "$TMP_DIR/build-logs"
-  scp -r "$TMP_DIR/build-logs" upload at code.gnucash.org:public_html/win32
-  rmdir "$TMP_DIR/build-logs"
+  mkdir "$_OUTPUT_DIR/$LOG_DIR"
+  scp -r "$_OUTPUT_DIR/$LOG_DIR" upload at code.gnucash.org:public_html/win32
+  rmdir "$_OUTPUT_DIR/$LOG_DIR"
 fi
 
 set +e
@@ -91,13 +92,12 @@
 fi
 
 # If we're running on the build server then upload the files
-# Note: change this target if you're building a different branch
 if [ `hostname` = "gnucash-win32" ]; then
-  # Small hack to create the target directory if it doesn't exist yet
-  mkdir "$TMP_DIR/$TARGET_DIR"
-  scp -r "$TMP_DIR/$TARGET_DIR" upload at code.gnucash.org:public_html/win32
-  rmdir "$TMP_DIR/$TARGET_DIR"
+  # Small hack to create the $TARGET_DIR on the webserver if it doesn't exist yet
+  mkdir "$_OUTPUT_DIR/$TARGET_DIR"
+  scp -r "$_OUTPUT_DIR/$TARGET_DIR" upload at code.gnucash.org:public_html/win32
+  rmdir "$_OUTPUT_DIR/$TARGET_DIR"
   # Copy the files to the chosen target directory
-  scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/build-logs
+  scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/$LOG_DIR
   scp -p ${_OUTPUT_DIR}/${SETUP_FILENAME} upload at code.gnucash.org:public_html/win32/$TARGET_DIR
 fi



More information about the gnucash-changes mailing list