r20455 - gnucash/trunk/packaging/win32 - Build server: automatically create directories on webserver for new branches

Geert Janssens gjanssens at code.gnucash.org
Tue Mar 22 17:03:22 EDT 2011


Author: gjanssens
Date: 2011-03-22 17:03:22 -0400 (Tue, 22 Mar 2011)
New Revision: 20455
Trac: http://svn.gnucash.org/trac/changeset/20455

Modified:
   gnucash/trunk/packaging/win32/build_package.sh
Log:
Build server: automatically create directories on webserver for new branches


Modified: gnucash/trunk/packaging/win32/build_package.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package.sh	2011-03-22 20:24:13 UTC (rev 20454)
+++ gnucash/trunk/packaging/win32/build_package.sh	2011-03-22 21:03:22 UTC (rev 20455)
@@ -77,5 +77,14 @@
 # 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
-  scp -p ${LOGFILE} ${_OUTPUT_DIR}/${SETUP_FILENAME} upload at code.gnucash.org:public_html/win32/trunk
+  # Determine where to upload to
+  if $(echo $REPOS_URL | grep -q tags); then
+    TARGET_DIR=tags
+  else
+    TARGET_DIR=${REPOS_URL##*/}
+  fi
+  # Small hack to create the target directory if it doesn't exist yet
+  scp -r $TARGET_DIR upload at code.gnucash.org:public_html/win32
+  # Copy the files to the chosen target directory
+  scp -p ${LOGFILE} ${_OUTPUT_DIR}/${SETUP_FILENAME} upload at code.gnucash.org:public_html/win32/$TARGET_DIR
 fi



More information about the gnucash-changes mailing list