Build-Depends-Indep on asciidoc, docbook-xsl and xsltproc
authorMichael Prokop <mika@grml.org>
Wed, 12 Aug 2009 23:55:37 +0000 (01:55 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 12 Aug 2009 23:55:37 +0000 (01:55 +0200)
debian/changelog
debian/control
debian/rules
doc/Makefile [new file with mode: 0644]

index e25b201..935772a 100644 (file)
@@ -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 <mika@grml.org>  Tue, 11 Aug 2009 13:03:38 +0200
+ -- Michael Prokop <mika@grml.org>  Thu, 13 Aug 2009 01:54:52 +0200
 
 grml-autoconfig (0.8.24) unstable; urgency=low
 
index 8ed77fc..cebb460 100644 (file)
@@ -4,6 +4,7 @@ Priority: optional
 Maintainer: Michael Prokop <mika@grml.org>
 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
index da2d757..1c592ca 100755 (executable)
@@ -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 (file)
index 0000000..40881c0
--- /dev/null
@@ -0,0 +1,24 @@
+%.html : %.txt ;
+       asciidoc -b xhtml11 $^
+
+%.gz : %.txt ;
+       asciidoc -d manpage -b docbook $^
+       #sed -i 's/<emphasis role="strong">/<emphasis role="bold">/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
+