From 53d0b13794018f88dcd2df017667e173bb333abf Mon Sep 17 00:00:00 2001 From: Guido Guenther Date: Fri, 19 Oct 2007 09:22:17 +0200 Subject: add version number to docs and a tools --- debian/rules | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 1dc87692..80b8218e 100755 --- a/debian/rules +++ b/debian/rules @@ -12,10 +12,14 @@ MANPAGES=$(patsubst %,docs/%.1,$(COMMANDS)) MANUAL=docs/manual-html PYCHECKS=$(patsubst %,%.py,$(COMMANDS)) PYCHECK_LEVEL=Error +GBP_VERSION=gbp/gbp_version.py +VERSION_ENT=docs/version.ent docs/%.1: docs/man.%.sgml docbook2man -o docs/ $< +docs/manual.sgml: docs/version.ent + $(MANUAL): docs/manual.sgml docs/chapters/*.sgml docs/manpages/*.sgml docbook-2-html -s local $< @@ -23,10 +27,16 @@ $(MANUAL): docs/manual.sgml docs/chapters/*.sgml docs/manpages/*.sgml ln -s $< $@ PYTHONPATH=. pychecker -e $(PYCHECK_LEVEL) -q $< -build/git-buildpackage:: $(MANPAGES) $(MANUAL) $(PYCHECKS) +$(GBP_VERSION): debian/changelog + echo 'gbp_version="$(DEB_VERSION)"' > $(GBP_VERSION) + +$(VERSION_ENT): debian/changelog + echo '' > $(VERSION_ENT) + +build/git-buildpackage:: $(MANPAGES) $(MANUAL) $(GBP_VERSION) $(PYCHECKS) clean:: -rm git-*.py - -rm docs/*.1 docs/manpage.* + -rm docs/*.1 docs/manpage.* docs/$(VERSION_ENT) -rm -r docs/manual-html/ -- cgit v1.2.3