Newer
Older
divorce-your-linux-admin / makefile
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