r20460 - gnucash/trunk/packaging/win32 - Windows build: fix upload code
Geert Janssens
gjanssens at code.gnucash.org
Wed Mar 23 17:38:21 EDT 2011
Author: gjanssens
Date: 2011-03-23 17:38:21 -0400 (Wed, 23 Mar 2011)
New Revision: 20460
Trac: http://svn.gnucash.org/trac/changeset/20460
Modified:
gnucash/trunk/packaging/win32/build_package.sh
Log:
Windows build: fix upload code
Modified: gnucash/trunk/packaging/win32/build_package.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package.sh 2011-03-23 21:37:03 UTC (rev 20459)
+++ gnucash/trunk/packaging/win32/build_package.sh 2011-03-23 21:38:21 UTC (rev 20460)
@@ -84,7 +84,9 @@
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
+ mkdir "$TMP_DIR/$TARGET_DIR"
+ scp -r "$TMP_DIR/$TARGET_DIR" upload at code.gnucash.org:public_html/win32
+ rmdir "$TMP_DIR/$TARGET_DIR"
# 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