]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
now using "sed" to cut off the version
authordivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 7 Jan 2009 13:20:08 +0000 (13:20 +0000)
committerdivverent <divverent@61c419a2-8eb2-4b30-bcec-8cead039b335>
Wed, 7 Jan 2009 13:20:08 +0000 (13:20 +0000)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@156 61c419a2-8eb2-4b30-bcec-8cead039b335

Makefile

index b7918bdfae7a5707e01139dbdd7879e3b696925d..e1d1fbd7f05bfa2eec88bb6a5e3ca055da1f6404 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,6 +42,7 @@ TEE_STDERR         ?= | tee /dev/stderr
 TR                 ?= tr
 FIND               ?= find
 DIFF               ?= diff
+SED                ?= sed
 
 # optional:
 SVNVERSION         ?= svnversion
@@ -175,7 +176,7 @@ RADIANT_VERSION = 1.5.0
 RADIANT_MAJOR_VERSION = 5
 RADIANT_MINOR_VERSION = 0
 
-SVN_VERSION := $(shell $(SVNVERSION) -n $(STDERR_TO_DEVNULL) | $(TR) -cd 0-9:)
+SVN_VERSION := $(shell $(SVNVERSION) -n $(STDERR_TO_DEVNULL) | $(SED) 's/M$$//g; s/.*://g;')
 ifneq ($(SVN_VERSION),)
        RADIANT_VERSION := $(RADIANT_VERSION)-svn$(SVN_VERSION)
 endif
@@ -221,7 +222,7 @@ dependencies-check:
        checkbinary coreutils "$(RM)"; \
        checkbinary coreutils "$(RM_R)"; \
        checkbinary coreutils "$(ECHO) test $(TEE_STDERR)"; \
-       checkbinary coreutils "$(TR)"; \
+       checkbinary sed "$(SED)"; \
        checkbinary findutils "$(FIND)"; \
        checkbinary diff "$(DIFF)"; \
        checkbinary gcc "$(CC)"; \