Changeset - r10097:382d57ab041b
[Not reviewed]
master
0 1 0
matthijs - 16 years ago 2008-09-09 10:58:23
matthijs@openttd.org
(svn r14278) -Cleanup [Makefile]: Rename $TAGS to $TAG.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
findversion.sh
Show inline comments
 
@@ -67,16 +67,16 @@ if [ -d "$ROOT_DIR/.svn" ]; then
 
	# We are an svn checkout
 
	if [ -n "`svnversion \"$SRC_DIR\" | grep 'M'`" ]; then
 
		MODIFIED="2"
 
	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
 
elif [ -d "$ROOT_DIR/.git" ]; then
 
	# We are a git checkout
 
	if [ -n "`git diff-index HEAD \"$SRC_DIR\"`" ]; then
0 comments (0 inline, 0 general)