From dd31080f647066e88d42cd2a7981631e0cf632ba Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 13 Aug 2009 01:55:37 +0200 Subject: [PATCH] Build-Depends-Indep on asciidoc, docbook-xsl and xsltproc --- debian/changelog | 5 ++++- debian/control | 1 + debian/rules | 2 ++ doc/Makefile | 24 ++++++++++++++++++++++++ 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 doc/Makefile diff --git a/debian/changelog b/debian/changelog index e25b201..935772a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,14 +9,17 @@ grml-autoconfig (0.8.25) UNRELEASED; urgency=low was given on the command line. - Drop $CMDLINE from grml-autoconfig; it's initialized from within autoconfig.functions. + - Moved documentation from grml-saveconfig (now AKA grml-autoconfig.txt) + and adjusted for new DSC feature. * Set $CMDLINE in $BOOTDEBUG part only if it's not available yet. * Code cleanup: - drop stringinstring(), stringinfile() and checkgrmlusb() - rework getbootparam(), checkvalue() and checkbootparam() - now we handle bootoptions in /proc/cmdline correctly as whole words and support matching begin and end of line as well. + * Build-Depends-Indep on asciidoc, docbook-xsl and xsltproc. - -- Michael Prokop Tue, 11 Aug 2009 13:03:38 +0200 + -- Michael Prokop Thu, 13 Aug 2009 01:54:52 +0200 grml-autoconfig (0.8.24) unstable; urgency=low diff --git a/debian/control b/debian/control index 8ed77fc..cebb460 100644 --- a/debian/control +++ b/debian/control @@ -4,6 +4,7 @@ Priority: optional Maintainer: Michael Prokop Build-Depends: debhelper (>= 5) Standards-Version: 3.8.2 +Build-Depends-Indep: asciidoc, docbook-xsl, xsltproc Homepage: http://git.grml.org/?p=grml-autoconfig.git Vcs-git: git://git.grml.org/grml-autoconfig.git Vcs-Browser: http://git.grml.org/?p=grml-autoconfig.git diff --git a/debian/rules b/debian/rules index da2d757..1c592ca 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,7 @@ build: build-stamp build-stamp: dh_testdir + cd doc && $(MAKE) && cd .. touch build-stamp @@ -28,6 +29,7 @@ install: build dh_testdir dh_testroot dh_clean -k + cd doc && $(MAKE) clean && cd .. dh_installdirs etc/grml etc/init.d usr/sbin usr/bin # Add here commands to install the package into debian/grml-autoconfig. diff --git a/doc/Makefile b/doc/Makefile new file mode 100644 index 0000000..40881c0 --- /dev/null +++ b/doc/Makefile @@ -0,0 +1,24 @@ +%.html : %.txt ; + asciidoc -b xhtml11 $^ + +%.gz : %.txt ; + asciidoc -d manpage -b docbook $^ + #sed -i 's///g' `echo $^ |sed -e 's/.txt/.xml/'` + xsltproc -nonet /usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl `echo $^ |sed -e 's/.txt/.xml/'` &>/dev/null + # ugly hack to avoid '.sp' at the end of a sentence or paragraph: + sed -i 's/\.sp//' `echo $^ | sed -e 's/.txt//'` + gzip -f --best `echo $^ |sed -e 's/.txt//'` + +MANPAGES = grml-autoconfig + +all: doc + +doc: doc_html +# doc: doc_man doc_html +doc_html: $(addsuffix .html, $(MANPAGES)) +doc_man: $(addsuffix .gz, $(MANPAGES)) + +clean: + @for i in $(MANPAGES); do \ + rm -f $$i.html $$i.xml $$i.gz $$i; done + -- 2.1.4