mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r5493) -Fix: 'grep -o' isn't supported on all targets. 'sed' is, so use thatone (tokai)
This commit is contained in:
parent
431c861a8f
commit
97c2d3d764
2
Makefile
2
Makefile
@ -259,7 +259,7 @@ ifdef RELEASE
|
||||
REV:=$(RELEASE)
|
||||
else
|
||||
ifeq ($(shell if test -d .svn; then echo 1; fi), 1)
|
||||
REV_MODIFIED := $(shell svnversion . | grep -o M)
|
||||
REV_MODIFIED := $(shell svnversion . | sed -n 's/.*\(M\).*/\1/p' )
|
||||
REV := $(shell LC_ALL=C svn info | awk '/^URL:.*branch/ { BRANCH="-"a[split($$2, a, "/")] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user