Use Unix time for the date code.
This is easier to deal with than YYYYMMDD.
This commit is contained in:
parent
749d697c98
commit
d0a28c6a94
1 changed files with 1 additions and 1 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue