mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 22:41:12 +01:00
Fix serno.h for compiles from Mercurial.
This commit is contained in:
parent
17e4b48b55
commit
62a360ea22
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ build:
|
||||||
sh configure; \
|
sh configure; \
|
||||||
fi
|
fi
|
||||||
@if [ -d .hg ] ; then \
|
@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 ; \
|
[ -z "$$revh" ] || echo '#define SERNO "'$$revh'"' >include/serno.h ; \
|
||||||
fi
|
fi
|
||||||
@[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h
|
@[ -f include/serno.h ] || echo '#define SERNO "unknown"' >include/serno.h
|
||||||
|
|
Loading…
Reference in a new issue