0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

Fix serno.h for compiles from Mercurial.

This commit is contained in:
Jilles Tjoelker 2010-02-03 00:46:14 +01:00
parent 17e4b48b55
commit 62a360ea22

View file

@ -67,7 +67,7 @@ build:
sh configure; \
fi
@if [ -d .hg ] ; then \
revh=`hg parents --template '#date|shortdate#_#node|short#' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
revh=`hg parents --template '{date|shortdate}_{node|short}' 2>/dev/null | sed -e s/-//g -e s/_/-/`;\
[ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
fi
@[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h