Permalink
Browse files

Merge pull request #1786 from leandro-lucarella-sociomantic/fix-devel…

…-version

[trivial] Fix makefile to work without git installed
  • Loading branch information...
2 parents 5178fe7 + 76a79db commit 91b937c70cc9f271368770158836211da3a47de4 @WalterBright WalterBright committed Mar 22, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/posix.mak
View
@@ -206,8 +206,8 @@ impcnvgen : mtype.h impcnvgen.c
# into account, untracked files don't affect the dirty state).
VERSION := $(shell cat ../VERSION)
ifneq (1,$(RELEASE))
-VERSION_GIT := $(shell $(GIT) rev-parse --short HEAD)$(shell \
- test -n "`$(GIT) status --porcelain -uno`" && echo -dirty)
+VERSION_GIT := $(shell printf "`$(GIT) rev-parse --short HEAD`"; \
+ test -n "`$(GIT) status --porcelain -uno`" && printf -- -dirty)
VERSION := $(addsuffix -devel$(if $(VERSION_GIT),-$(VERSION_GIT)),$(VERSION))
endif
$(shell test \"$(VERSION)\" != "`cat verstr.h 2> /dev/null`" \

0 comments on commit 91b937c

Please sign in to comment.