r22315 - gnucash/trunk/packaging/win32 - Win32: fix log file name generated by automated build

Geert Janssens gjanssens at code.gnucash.org
Wed Aug 15 05:55:30 EDT 2012


Author: gjanssens
Date: 2012-08-15 05:55:29 -0400 (Wed, 15 Aug 2012)
New Revision: 22315
Trac: http://svn.gnucash.org/trac/changeset/22315

Modified:
   gnucash/trunk/packaging/win32/build_package_git.sh
Log:
Win32: fix log file name generated by automated build

Modified: gnucash/trunk/packaging/win32/build_package_git.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_package_git.sh	2012-08-15 09:55:20 UTC (rev 22314)
+++ gnucash/trunk/packaging/win32/build_package_git.sh	2012-08-15 09:55:29 UTC (rev 22315)
@@ -20,20 +20,20 @@
 
 function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
 
-tag="$1"
-
 . functions.sh
 . defaults.sh
 
+tag="${1:-$GIT_REV}"
+
 # Determine where to upload to
-# NOTE: this assumes GIT_REV to be either a tag or a branch, not a
+# NOTE: this assumes "tag" to be either a tag or a branch, not a
 #       commit hash. It will probably work with a hash as well,
 #       but will create a directory for the hash
-if [ -n "$($GIT_CMD tag -l $GIT_REV)" ]; then
+if [ -n "$($GIT_CMD tag -l $tag)" ]; then
   TARGET_DIR=releases
   LOG_TAG=$tag
 else
-  TARGET_DIR=${GIT_REV}
+  TARGET_DIR=$tag
   LOG_TAG=$TARGET_DIR
 fi
 



More information about the gnucash-changes mailing list