From 5072ed3bd3e76ff4832f405960204706b518a2f2 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Wed, 19 Sep 2012 05:56:55 -0400 Subject: [PATCH] date parsing for OSX is BSD-like --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index a8aa8250bb..80faa51342 100644 --- a/Makefile +++ b/Makefile @@ -37,8 +37,12 @@ endif ifeq ($(OS), FreeBSD) DATE := $(shell date -j -f "%Y-%m-%d %H:%M:%s" "$(GIT_DATE)" +%Y%m%d%H%M) 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) endif +endif # RPM build parameters RPMSPECDIR= packaging/rpm