Skip to content

Commit

Permalink
Build server: automatically create directories on webserver for new b…
Browse files Browse the repository at this point in the history
…ranches

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20455 57a11ea4-9604-0410-9ed3-97b8803252fd
  • Loading branch information
gjanssens committed Mar 22, 2011
1 parent 117a73e commit 14458f4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packaging/win32/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 14458f4

Please sign in to comment.