mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Use pwd instead of assuming $0 is a full path.
Set URL in a variable git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18123 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
e751014bca
commit
bd706619e0
@ -6,11 +6,13 @@ function qpushd() { pushd "$@" >/dev/null; }
|
|||||||
function qpopd() { popd >/dev/null; }
|
function qpopd() { popd >/dev/null; }
|
||||||
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
|
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)
|
# Setup our environment (we need the DOWNLOAD_DIR)
|
||||||
|
|
||||||
pkgdir="$(dirname $(unix_path "$0"))"
|
qpushd "$(dirname $(unix_path "$0"))"
|
||||||
qpushd "${pkgdir}"
|
pkgdir="`pwd`"
|
||||||
svn update
|
svn update
|
||||||
. functions.sh
|
. functions.sh
|
||||||
. defaults.sh
|
. defaults.sh
|
||||||
@ -23,11 +25,11 @@ svn update
|
|||||||
# If we don't have a tagfile then start from 'now'
|
# If we don't have a tagfile then start from 'now'
|
||||||
tagfile=tags
|
tagfile=tags
|
||||||
if [ ! -f ${tagfile} ] ; then
|
if [ ! -f ${tagfile} ] ; then
|
||||||
svn ls http://svn.gnucash.org/repo/gnucash/tags > ${tagfile}
|
svn ls ${TAG_URL} > ${tagfile}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Figure out the new set of tags
|
# 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'`"
|
tags="`diff --suppress-common-lines ${tagfile} ${tagfile}.new | grep '^> ' | sed -e 's/^> //g' -e 's#/$##g'`"
|
||||||
|
|
||||||
# move the new file into place
|
# move the new file into place
|
||||||
@ -46,7 +48,7 @@ for tag in $tags ; do
|
|||||||
cp -p $(unix_path ${DOWNLOAD_DIR})/* ${tagbasedir}/downloads
|
cp -p $(unix_path ${DOWNLOAD_DIR})/* ${tagbasedir}/downloads
|
||||||
|
|
||||||
# Check out the tag and setup custom.sh
|
# 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
|
w32pkg=${tagdir}/repos/packaging/win32
|
||||||
cp -p "${pkgdir}/custom.sh" ${w32pkg}/custom.sh
|
cp -p "${pkgdir}/custom.sh" ${w32pkg}/custom.sh
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user