Include source state info in documentation build.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 15 Jan 2012 19:40:15 +0200
changeset 127 2fc0561f80ca
parent 126 ce55b1ae8557
child 128 ca6ceff4941c
Include source state info in documentation build.
Makefile
--- a/Makefile	Sun Jan 15 14:59:08 2012 +0200
+++ b/Makefile	Sun Jan 15 19:40:15 2012 +0200
@@ -280,9 +280,19 @@
 
 VERSION.rst: VERSION $(BUILD_SCRIPT)
 	{ \
-	echo 'Version: '$(vmajor).$(vminor); \
+	echo 'For ``$(pkgname)`` version: ``$(vmajor).$(vminor)``.'; \
+	echo; \
+	case ${visclean} in \
+		yes) echo 'Source files are at revision: ``$(vrev)``.';; \
+		no) echo 'Some source files was modified from revision: ``$(vrev)``.';; \
+	esac; \
 	echo; \
-	echo 'Date: '`date +%F`; \
+	case ${vatrelease} in \
+		yes) echo 'Package is at release state.';; \
+		no) echo 'Package is far from release state by $(vtagdist) changes.';; \
+	esac; \
+	echo; \
+	echo 'Build date: ``'$$(date +%F)'``.'; \
 	} >$@
 
 ################################################################