r18123 - gnucash/trunk/packaging/win32 - Use pwd instead of assuming $0 is a full path.
Derek Atkins
warlord at code.gnucash.org
Sat Jun 13 00:37:39 EDT 2009
Author: warlord
Date: 2009-06-13 00:37:39 -0400 (Sat, 13 Jun 2009)
New Revision: 18123
Trac: http://svn.gnucash.org/trac/changeset/18123
Modified:
gnucash/trunk/packaging/win32/build_tags.sh
Log:
Use pwd instead of assuming $0 is a full path.
Set URL in a variable
Modified: gnucash/trunk/packaging/win32/build_tags.sh
===================================================================
--- gnucash/trunk/packaging/win32/build_tags.sh 2009-06-13 04:31:35 UTC (rev 18122)
+++ gnucash/trunk/packaging/win32/build_tags.sh 2009-06-13 04:37:39 UTC (rev 18123)
@@ -6,11 +6,13 @@
function qpopd() { popd >/dev/null; }
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
+TAG_URL=http://svn.gnucash.org/repo/gnucash/tags
+
################################################################
# Setup our environment (we need the DOWNLOAD_DIR)
-pkgdir="$(dirname $(unix_path "$0"))"
-qpushd "${pkgdir}"
+qpushd "$(dirname $(unix_path "$0"))"
+pkgdir="`pwd`"
svn update
. functions.sh
. defaults.sh
@@ -23,11 +25,11 @@
# If we don't have a tagfile then start from 'now'
tagfile=tags
if [ ! -f ${tagfile} ] ; then
- svn ls http://svn.gnucash.org/repo/gnucash/tags > ${tagfile}
+ svn ls ${TAG_URL} > ${tagfile}
fi
# Figure out the new set of tags
-svn ls http://svn.gnucash.org/repo/gnucash/tags > ${tagfile}.new
+svn ls ${TAG_URL} > ${tagfile}.new
tags="`diff --suppress-common-lines ${tagfile} ${tagfile}.new | grep '^> ' | sed -e 's/^> //g' -e 's#/$##g'`"
# move the new file into place
@@ -46,7 +48,7 @@
cp -p $(unix_path ${DOWNLOAD_DIR})/* ${tagbasedir}/downloads
# Check out the tag and setup custom.sh
- svn co -q http://svn.gnucash.org/repo/gnucash/tags/${tag} ${tagdir}/repos
+ svn co -q ${TAG_URL}/${tag} ${tagdir}/repos
w32pkg=${tagdir}/repos/packaging/win32
cp -p "${pkgdir}/custom.sh" ${w32pkg}/custom.sh
More information about the gnucash-changes
mailing list