From 1e5bc6f110e4d424e8ec0d7c1aaf397c842ccb93 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Thu, 24 Mar 2011 19:42:13 +0000 Subject: [PATCH] [20455] Build server: automatically create directories on webserver for new branches git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/branches/2.4@20464 57a11ea4-9604-0410-9ed3-97b8803252fd --- packaging/win32/build_package.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/packaging/win32/build_package.sh b/packaging/win32/build_package.sh index 092132efa8..e2b674d17b 100644 --- a/packaging/win32/build_package.sh +++ b/packaging/win32/build_package.sh @@ -77,5 +77,14 @@ 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 - scp -p ${LOGFILE} ${_OUTPUT_DIR}/${SETUP_FILENAME} upload@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@code.gnucash.org:public_html/win32 + # Copy the files to the chosen target directory + scp -p ${LOGFILE} ${_OUTPUT_DIR}/${SETUP_FILENAME} upload@code.gnucash.org:public_html/win32/$TARGET_DIR fi