mirror of https://github.com/OpenTTD/OpenTTD
(svn r27059) -Change: [Makefile] Make sure to use plain mercurial output unaltered by personal presets
parent
ab087d2d1c
commit
bc371a2d9e
|
@ -1037,7 +1037,7 @@ check_params() {
|
||||||
log 1 "checking revision... svn detection (tag)"
|
log 1 "checking revision... svn detection (tag)"
|
||||||
elif [ -d "$ROOT_DIR/.git" ] && [ -n "`git help 2>/dev/null`" ]; then
|
elif [ -d "$ROOT_DIR/.git" ] && [ -n "`git help 2>/dev/null`" ]; then
|
||||||
log 1 "checking revision... git detection"
|
log 1 "checking revision... git detection"
|
||||||
elif [ -d "$ROOT_DIR/.hg" ] && [ -n "`hg help 2>/dev/null`" ]; then
|
elif [ -d "$ROOT_DIR/.hg" ] && [ -n "`HGPLAIN= hg help 2>/dev/null`" ]; then
|
||||||
log 1 "checking revision... hg detection"
|
log 1 "checking revision... hg detection"
|
||||||
elif [ -f "$ROOT_DIR/.ottdrev" ]; then
|
elif [ -f "$ROOT_DIR/.ottdrev" ]; then
|
||||||
log 1 "checking revision... source tarball"
|
log 1 "checking revision... source tarball"
|
||||||
|
|
|
@ -106,12 +106,12 @@ elif [ -d "$ROOT_DIR/.git" ]; then
|
||||||
fi
|
fi
|
||||||
elif [ -d "$ROOT_DIR/.hg" ]; then
|
elif [ -d "$ROOT_DIR/.hg" ]; then
|
||||||
# We are a hg checkout
|
# We are a hg checkout
|
||||||
if [ -n "`hg status | grep -v '^?'`" ]; then
|
if [ -n "`HGPLAIN= hg status | grep -v '^?'`" ]; then
|
||||||
MODIFIED="2"
|
MODIFIED="2"
|
||||||
fi
|
fi
|
||||||
HASH=`LC_ALL=C hg id -i | cut -c1-12`
|
HASH=`LC_ALL=C HGPLAIN= hg id -i | cut -c1-12`
|
||||||
REV="h`echo $HASH | cut -c1-8`"
|
REV="h`echo $HASH | cut -c1-8`"
|
||||||
BRANCH="`hg branch | sed 's@^default$@@'`"
|
BRANCH="`HGPLAIN= hg branch | sed 's@^default$@@'`"
|
||||||
TAG="`hg id -t | grep -v 'tip$'`"
|
TAG="`hg id -t | grep -v 'tip$'`"
|
||||||
if [ -n "$TAG" ]; then
|
if [ -n "$TAG" ]; then
|
||||||
BRANCH=""
|
BRANCH=""
|
||||||
|
|
Loading…
Reference in New Issue