1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

date parsing for OSX is BSD-like

This commit is contained in:
Matthew Johnson 2012-09-19 05:56:55 -04:00
parent b2af95e4a6
commit 5072ed3bd3

View file

@ -37,8 +37,12 @@ endif
ifeq ($(OS), FreeBSD) ifeq ($(OS), FreeBSD)
DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%s" "$(GIT_DATE)" +%Y%m%d%H%M) DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%s" "$(GIT_DATE)" +%Y%m%d%H%M)
else else
ifeq ($(OS), Darwin)
DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%S" "$(GIT_DATE)" +%Y%m%d%H%M)
else
DATE := $(shell date --date="$(GIT_DATE)" +%Y%m%d%H%M) DATE := $(shell date --date="$(GIT_DATE)" +%Y%m%d%H%M)
endif endif
endif
# RPM build parameters # RPM build parameters
RPMSPECDIR= packaging/rpm RPMSPECDIR= packaging/rpm