Old versions of git 0.5 does not support the git show --oneline. - Maybe this works?
This commit is contained in:
parent
b1d4b1288f
commit
f272280faf
|
@ -130,7 +130,7 @@ LDFLAGS += -L$(LIBEVENT_PATH)
|
|||
endif
|
||||
|
||||
ifeq ($(GIT_REVISION),YES)
|
||||
CFLAGS += -DGIT_REVISION=\"-git:$(shell git show --oneline | head -n 1 | cut -f 1 -d " ")\"
|
||||
CFLAGS += -DGIT_REVISION=\"-git:$(shell git show --abbrev-commit | head -n 1 | cut -f 2 -d " ")\"
|
||||
endif
|
||||
|
||||
# Sources
|
||||
|
|
Loading…
Reference in New Issue