diff --git a/makefile b/makefile index bcfa8da..4f37260 100644 --- a/makefile +++ b/makefile @@ -41,6 +41,13 @@ ######################################################################## +##### +# Revision Support +##### + +DATE = $(shell date) +REVISION = $(shell git log --pretty=format:"%h%x20%an%x20%ad%x20%s" -1 | cut -f1 -d" ") + ### # Document Production @@ -117,7 +124,7 @@ release: sed "s/__DATE__/${DATE}/" <${PROJECT}.rst >tmp.rst - sed "s/__VERSION__/${VERSION}/" ${PROJECT}.rst + sed "s/__REVISION__/${REVISION}/" ${PROJECT}.rst make html pdf rm tmp.rst git checkout ${PROJECT}.rst