Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=94705a91dcedf9868dd8a8f1cf7e7456a6b403cf

commit 94705a91dcedf9868dd8a8f1cf7e7456a6b403cf
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Wed May 14 23:50:08 2008 +0200

source/include: fix up docbook warnings

diff --git a/source/include/Makefile b/source/include/Makefile
index 6cf447e..c5f8539 100644
--- a/source/include/Makefile
+++ b/source/include/Makefile
@@ -1,6 +1,6 @@
# Makefile for Frugalware documentation
#
-# Copyright (C) 2007 Miklos Vajna <[EMAIL PROTECTED]>
+# Copyright (C) 2007, 2008 Miklos Vajna <[EMAIL PROTECTED]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -15,6 +15,9 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

+FST_VERSION := $(shell git describe)
+FST_DATE := $(shell date +%Y-%m-%d)
+
all: $(subst .sh,.sh.3,$(wildcard *.sh)) fwmakepkg.3

stat:
@@ -24,7 +27,8 @@ stat:
sed -n 's/^#\( \|$$\)//;/^###/,/^###/p' $^|sed 's/^###//' > $@

%.3: %.txt
-       a2x -f manpage $^
+       a2x --asciidoc-opts="-f asciidoc.conf" -a \
+               fst_version=$(FST_VERSION) -a fst_date=$(FST_DATE) -f manpage $^

fwmakepkg.txt: fwmakepkg.txt.in $(wildcard *.sh)
cat fwmakepkg.txt.in > fwmakepkg.txt
diff --git a/source/include/asciidoc.conf b/source/include/asciidoc.conf
new file mode 100644
index 0000000..8ea4ee0
--- /dev/null
+++ b/source/include/asciidoc.conf
@@ -0,0 +1,21 @@
+ifdef::doctype-manpage[]
+ifdef::backend-docbook[]
+[header]
+template::[header-declarations]
+<refentry>
+       <refmeta>
+               <refentrytitle>{mantitle}</refentrytitle>
+               <manvolnum>{manvolnum}</manvolnum>
+               <refmiscinfo class="source">Frugalware Linux</refmiscinfo>
+               <refmiscinfo class="version">{fst_version}</refmiscinfo>
+               <refmiscinfo class="manual">Frugalware Developer 
Manual</refmiscinfo>
+       </refmeta>
+       <refentryinfo>
+               <date>{fst_date}</date>
+       </refentryinfo>
+       <refnamediv>
+               <refname>{manname}</refname>
+               <refpurpose>{manpurpose}</refpurpose>
+       </refnamediv>
+endif::backend-docbook[]
+endif::doctype-manpage[]
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to