diff --git a/compiler/Makefile b/compiler/Makefile index 19be5a1b06..fcd30a9ece 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -477,7 +477,7 @@ ifneq ($(REVINC),) override LOCALOPT+=-dREVINC ifeq ($(REVSTR),) ifneq ($(SVNVERSION),) -REVSTR:=$(shell $(SVNVERSION) -c .) +REVSTR:=$(subst r,,$(subst r1:,,r$(shell $(SVNVERSION) -c .))) export REVSTR else ifeq ($(REVINC),force) diff --git a/compiler/Makefile.fpc b/compiler/Makefile.fpc index 61ac3c8880..d96b61b507 100644 --- a/compiler/Makefile.fpc +++ b/compiler/Makefile.fpc @@ -225,7 +225,7 @@ override LOCALOPT+=-dREVINC # svnversion executable is available ifeq ($(REVSTR),) ifneq ($(SVNVERSION),) -REVSTR:=$(shell $(SVNVERSION) -c .) +REVSTR:=$(subst r,,$(subst r1:,,r$(shell $(SVNVERSION) -c .))) export REVSTR else ifeq ($(REVINC),force)