diff options
author | matthijs <matthijs@openttd.org> | 2008-09-09 10:58:23 +0000 |
---|---|---|
committer | matthijs <matthijs@openttd.org> | 2008-09-09 10:58:23 +0000 |
commit | 3baee8f3c624738fd86f506628f5224c917d679e (patch) | |
tree | 44c3ecee14323b00dfb487451fe1f06e24700b63 | |
parent | 07f353718d263e136526f0aa7d7c67a279edf6db (diff) | |
download | openttd-3baee8f3c624738fd86f506628f5224c917d679e.tar.xz |
(svn r14278) -Cleanup [Makefile]: Rename $TAGS to $TAG.
-rwxr-xr-x | findversion.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/findversion.sh b/findversion.sh index 40b40f4ab..f91186d03 100755 --- a/findversion.sh +++ b/findversion.sh @@ -70,10 +70,10 @@ if [ -d "$ROOT_DIR/.svn" ]; then fi # Find the revision like: rXXXXM-branch BRANCH=`LC_ALL=C svn info "$SRC_DIR" | "$AWK" '/^URL:.*branches/ { split($2, a, "/"); for(i in a) if (a[i]=="branches") { print a[i+1]; break } }'` - TAGS=`LC_ALL=C svn info "$SRC_DIR" | "$AWK" '/^URL:.*tags/ { split($2, a, "/"); for(i in a) if (a[i]=="tags") { print a[i+1]; break } }'` + TAG=`LC_ALL=C svn info "$SRC_DIR" | "$AWK" '/^URL:.*tags/ { split($2, a, "/"); for(i in a) if (a[i]=="tags") { print a[i+1]; break } }'` REV_NR=`LC_ALL=C svn info "$SRC_DIR" | "$AWK" '/^Last Changed Rev:/ { print $4 }'` - if [ -n "$TAGS" ]; then - REV=$TAGS + if [ -n "$TAG" ]; then + REV=$TAG else REV="r$REV_NR" fi |