mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Build server: automatically create directories on webserver for new branches
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20455 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
117a73e700
commit
14458f4a3a
@ -77,5 +77,14 @@ fi
|
|||||||
# If we're running on the build server then upload the files
|
# If we're running on the build server then upload the files
|
||||||
# Note: change this target if you're building a different branch
|
# Note: change this target if you're building a different branch
|
||||||
if [ `hostname` = "gnucash-win32" ]; then
|
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
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user