From d0a28c6a94b19e8e2b3fef74316f7687374d2853 Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Mon, 7 Mar 2016 17:40:50 -0600 Subject: [PATCH] Use Unix time for the date code. This is easier to deal with than YYYYMMDD. --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 6eb6157b2..eb249792d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,7 +24,7 @@ BUILT_SOURCES = include/serno.h include/serno.h: @if [ -d .git ]; then \ revh=`git log -1 --date=format:%Y%m%d --pretty=format:%cd-%h`; \ - datecode=`git log -1 --date=format:%Y%m%d --pretty=format:%cd`; \ + datecode=`git log -1 --pretty=format:%ct`; \ if [ -n "$$revh" ]; then \ echo '#define SERNO "'$$revh'"' >include/serno.h ; \ echo "#define DATECODE $${datecode}UL" >>include/serno.h; \