mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #1061 from copperlight/fix-make-error
fix Makefile date command error on OSX
This commit is contained in:
commit
e039d88438
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