verstr separated into script so that it may be used by others
parent
91c948340b
commit
d720c6666d
4
Makefile
4
Makefile
|
@ -14,9 +14,7 @@ default: lvspec.pdf
|
||||||
# outputs a version string to uniquely identify the document revision
|
# outputs a version string to uniquely identify the document revision
|
||||||
# TODO: use tag name if matches current commit
|
# TODO: use tag name if matches current commit
|
||||||
verstr.tex:
|
verstr.tex:
|
||||||
git log -n1 --format=%h | tr -d '\n' > verstr.tex
|
verstr >$@
|
||||||
test -z "$$( git status -s | grep -v '^?? ' )" \
|
|
||||||
|| echo -n '-dirty' >> verstr.tex
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.pdf
|
rm -f *.pdf
|
||||||
|
|
Loading…
Reference in New Issue