r20464 - gnucash/branches/2.4/packaging/win32 - [20455] Build server: automatically create directories on webserver for new branches
Geert Janssens
gjanssens at code.gnucash.org
Thu Mar 24 15:42:13 EDT 2011
Author: gjanssens
Date: 2011-03-24 15:42:13 -0400 (Thu, 24 Mar 2011)
New Revision: 20464
Trac: http://svn.gnucash.org/trac/changeset/20464
Modified:
gnucash/branches/2.4/packaging/win32/build_package.sh
Log:
[20455] Build server: automatically create directories on webserver for new branches
Modified: gnucash/branches/2.4/packaging/win32/build_package.sh
===================================================================
--- gnucash/branches/2.4/packaging/win32/build_package.sh 2011-03-24 19:42:04 UTC (rev 20463)
+++ gnucash/branches/2.4/packaging/win32/build_package.sh 2011-03-24 19:42:13 UTC (rev 20464)
@@ -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