Skip to content

Commit 6599131

Browse files
committed
install: correct arg order for date cmd on FreeBSD
1 parent d2c97fd commit 6599131

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ GIT_REFRESH_PREREQ := .git/objects
8888

8989
# determine if version.inc needs to get updated as git repository has changed
9090
ifeq ($(wildcard version.inc), version.inc)
91-
MTIME_VERSION := $(shell date +%s -r version.inc)
92-
MTIME_GIT_REPO := $(shell date +%s -r $(GIT_REFRESH_PREREQ))
91+
MTIME_VERSION := $(shell date -r version.inc +%s)
92+
MTIME_GIT_REPO := $(shell date -r $(GIT_REFRESH_PREREQ) +%s)
9393
REFRESH_VERSION_INC := $(shell if [ $(MTIME_GIT_REPO) -gt $(MTIME_VERSION) ]; \
9494
then echo y; else echo n; fi)
9595
else

0 commit comments

Comments
 (0)