Skip to content

Commit

Permalink
BUILD: Correct date flags for BSD date
Browse files Browse the repository at this point in the history
BSD date does not recognise --utc however -u is accepted by both BSD
and GNU date.
  • Loading branch information
Daniel Maloney authored and DrMcCoy committed May 12, 2014
1 parent fa6b3b2 commit 7f9f397
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ VERSION_FLAGS = $(shell if test x$(VER_REVDESC) != "x"; then echo "-DXOREOS_REVD
VER_REV = $(shell cat $(top_srcdir)/gitstamp/gitstamp | cut -d '-' -f 2-)
VERSION_FLAGS += $(shell if test x$(VER_REV) != "x"; then echo "-DXOREOS_REV=\\\"$(VER_REV)\\\""; fi)

VER_DATE = $(shell date --utc '+%Y-%m-%dT%H:%M:%S')
VER_DATE = $(shell date -u '+%Y-%m-%dT%H:%M:%S')
VERSION_FLAGS += $(shell if test x$(VER_DATE) != "x"; then echo "-DXOREOS_BUILDDATE=\\\"$(VER_DATE)\\\""; fi)

AM_CXXFLAGS += $(VERSION_FLAGS)
Expand Down

0 comments on commit 7f9f397

Please sign in to comment.