Skip to content

Commit

Permalink
date parsing for OSX is BSD-like
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Johnson committed Sep 19, 2012
1 parent b2af95e commit 5072ed3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5072ed3

Please sign in to comment.