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:
parent
b2af95e4a6
commit
5072ed3bd3
1 changed files with 4 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue