diff options
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -48,7 +48,7 @@ RELEASE ?= 1 # Get the branch information from git ifneq ($(shell which git),) -GIT_DATE := $(shell git log -n 1 --format="%ai") +GIT_DATE := $(shell git log -n 1 --format="%ci") GIT_HASH := $(shell git log -n 1 --format="%h") GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD | sed 's/[-_.\/]//g') GITINFO = .$(GIT_HASH).$(GIT_BRANCH) @@ -57,7 +57,7 @@ GITINFO = "" endif ifeq ($(shell echo $(OS) | egrep -c 'Darwin|FreeBSD|OpenBSD|DragonFly'),1) -DATE := $(shell date -j -r $(shell git log -n 1 --format="%at") +%Y%m%d%H%M) +DATE := $(shell date -j -r $(shell git log -n 1 --format="%ct") +%Y%m%d%H%M) CPUS ?= $(shell sysctl hw.ncpu|awk '{print $$2}') else DATE := $(shell date --utc --date="$(GIT_DATE)" +%Y%m%d%H%M) |