Fix serno.h for compiles from Mercurial.

This commit is contained in:
Jilles Tjoelker 2010-02-03 00:46:14 +01:00
parent f7b5446177
commit 8329f99cf9
1 changed files with 1 additions and 1 deletions

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