diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-07 18:44:36 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-05-07 18:44:36 +0000 |
commit | 55dbfb5af4965fbb7570228fb3e70cae69169599 (patch) | |
tree | 0b45507a9c67ac6cef538a8bec43a9fa0476f58f | |
parent | 7281387161176907c31935f28f4bf60e96e67b78 (diff) | |
download | alpine-conf-55dbfb5af4965fbb7570228fb3e70cae69169599.zip |
check for .git dir before set version from git describe
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ ETC_LBU_FILES := lbu.conf EXTRA_DIST := Makefile README DIST_FILES := $(SCRIPT_SOURCES) $(ETC_LBU_FILES) $(EXTRA_DIST) -GIT_REV := $(shell git describe || echo exported) +GIT_REV := $(shell test -d .git && git describe || echo exported) ifneq ($(GIT_REV), exported) FULL_VERSION := $(patsubst $(PACKAGE)-%,%,$(GIT_REV)) FULL_VERSION := $(patsubst v%,%,$(FULL_VERSION)) |