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
|
||||
# TODO: use tag name if matches current commit
|
||||
verstr.tex:
|
||||
git log -n1 --format=%h | tr -d '\n' > verstr.tex
|
||||
test -z "$$( git status -s | grep -v '^?? ' )" \
|
||||
|| echo -n '-dirty' >> verstr.tex
|
||||
verstr >$@
|
||||
|
||||
clean:
|
||||
rm -f *.pdf
|
||||
|
|
Loading…
Reference in New Issue