AUDIT: r21787 - gnucash/trunk/packaging/win32 - Avoid build failure if a temporary directory still exists
Geert Janssens
gjanssens at code.gnucash.org
Thu Dec 29 07:13:22 EST 2011
Author: gjanssens
Date: 2011-12-29 07:13:22 -0500 (Thu, 29 Dec 2011)
New Revision: 21787
Trac: http://svn.gnucash.org/trac/changeset/21787
Modified:
gnucash/trunk/packaging/win32/build_package.sh
Log:
Avoid build failure if a temporary directory still exists
BP
Modified: gnucash/trunk/packaging/win32/build_package.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package.sh 2011-12-28 21:42:15 UTC (rev 21786)
+++ gnucash/trunk/packaging/win32/build_package.sh 2011-12-29 12:13:22 UTC (rev 21787)
@@ -42,7 +42,7 @@
# Small hack to create $LOG_DIR on the webserver if it doesn't exist yet
if [ `hostname` = "gnucash-win32" ]; then
- mkdir "$_OUTPUT_DIR/$LOG_DIR"
+ mkdir -p "$_OUTPUT_DIR/$LOG_DIR"
scp -r "$_OUTPUT_DIR/$LOG_DIR" upload at code.gnucash.org:public_html/win32
rmdir "$_OUTPUT_DIR/$LOG_DIR"
fi
@@ -95,7 +95,7 @@
# If we're running on the build server then upload the files
if [ `hostname` = "gnucash-win32" ]; then
# Small hack to create the $TARGET_DIR on the webserver if it doesn't exist yet
- mkdir "$_OUTPUT_DIR/$TARGET_DIR"
+ mkdir -p "$_OUTPUT_DIR/$TARGET_DIR"
scp -r "$_OUTPUT_DIR/$TARGET_DIR" upload at code.gnucash.org:public_html/win32
rmdir "$_OUTPUT_DIR/$TARGET_DIR"
# Copy the files to the chosen target directory
More information about the gnucash-changes
mailing list