Permalink
Browse files

Fix makefile to work without git installed

While we are at it, use printf instead of echo.
  • Loading branch information...
1 parent 656aba1 commit 76a79db083f160862b525f079b2ce8acf9f058dd @leandro-lucarella-sociomantic leandro-lucarella-sociomantic 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 76a79db

Please sign in to comment.