Avoid troubles with exported directories

This commit is contained in:
Pierre Muller 2023-10-03 10:06:10 +00:00
parent 123481aa8d
commit d9ad6bdd1f
2 changed files with 12 additions and 2 deletions

View File

@ -633,7 +633,12 @@ REVSTR:=$(REVSTR)-$(word 4,$(subst -, ,$(GITDESCRIBE)))
export REVSTR
else
ifneq ($(SVNVERSION),)
REVSTR:=$(subst r,,$(subst r1:,,r$(subst exported,,$(shell $(SVNVERSION) -c .))))
SVNVERSTR:=$(shell $(SVNVERSION) -c .)
ifneq ($(words $(SVNVERSTR)),1)
REVSTR:=$(subst $() $(),_,$(SVNVERSTR))
else
REVSTR:=$(subst r,,$(subst r1:,,r$(subst exported,,$(SVNVERSTR))))
endif
export REVSTR
endif
endif

View File

@ -357,7 +357,12 @@ REVSTR:=$(REVSTR)-$(word 4,$(subst -, ,$(GITDESCRIBE)))
export REVSTR
else
ifneq ($(SVNVERSION),)
REVSTR:=$(subst r,,$(subst r1:,,r$(subst exported,,$(shell $(SVNVERSION) -c .))))
SVNVERSTR:=$(shell $(SVNVERSION) -c .)
ifneq ($(words $(SVNVERSTR)),1)
REVSTR:=$(subst $() $(),_,$(SVNVERSTR))
else
REVSTR:=$(subst r,,$(subst r1:,,r$(subst exported,,$(SVNVERSTR))))
endif
export REVSTR
endif
endif