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}/" <tmp.rst >${PROJECT}.rst
make html pdf
rm tmp.rst
git checkout ${PROJECT}.rst