diff --git a/divorce_your_linux_admin.rst b/divorce_your_linux_admin.rst index 3803d9b..c4724c0 100644 --- a/divorce_your_linux_admin.rst +++ b/divorce_your_linux_admin.rst @@ -383,6 +383,10 @@ Document Information -------------------- +Produced On: __DATE__ + +Version: __VERSION__ + You can find the latest version of this document at: http://www.tundraware.com/divorce diff --git a/makefile b/makefile index a1b304a..88ac7ee 100644 --- a/makefile +++ b/makefile @@ -1,2 +1,12 @@ PROJECT = divorce_your_linux_admin include ../reStructuredText/makefile + +DATE = $(shell date) +VERSION = $(shell git log --pretty=format:"%h%x20%an%x20%ad%x20%s" -1 | cut -f1 -d" ") + +release:: + sed "s/__DATE__/${DATE}/" <${PROJECT}.rst >tmp.rst + sed "s/__VERSION__/${VERSION}/" ${PROJECT}.rst + make html pdf + rm tmp.rst + git checkout ${PROJECT}.rst