Fix script that builds the release tags. Awk works differently on windows than on linux apparently.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19216 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens
2010-06-01 14:22:34 +00:00
parent 0fa078208b
commit 980e7e0360
+4 -3
View File
@@ -25,11 +25,11 @@ svn update
# If we don't have a tagfile then start from 'now'
tagfile=tags
if [ ! -f ${tagfile} ] ; then
svn ls -v ${TAG_URL} | awk '/[^.]\/$/ { print $6$1 }' > ${tagfile}
svn ls -v ${TAG_URL} | awk '/[^.]\// { print $1"/"$6 }' > ${tagfile}
fi
# Figure out the new set of tags
svn ls -v ${TAG_URL} | awk '/[^.]\/$/ { print $6$1 }' > ${tagfile}.new
svn ls -v ${TAG_URL} | awk '/[^.]\// { print $1"/"$6 }' > ${tagfile}.new
tags="`diff --suppress-common-lines ${tagfile} ${tagfile}.new | grep '^> ' | sed -e 's/^> //g'`"
# move the new file into place
@@ -39,7 +39,8 @@ mv -f ${tagfile}.new ${tagfile}
# Now iterate over all the new tags (if any) and build a package
for tag_rev in $tags ; do
tag=${tag_rev%/*}
tag=${tag_rev#*/}
tag=${tag%/*}
tagbasedir=/c/soft/gnucash-${tag}
tagdir=${tagbasedir}/gnucash
rm -fr $tagbasedir