Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=46b33c0ee39fe3a7ae50b775f5e29a14652291b2
commit 46b33c0ee39fe3a7ae50b775f5e29a14652291b2
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Sun May 25 22:57:01 2008 +0200
silence asciidoc warnings
diff --git a/Makefile b/Makefile
index a0e9026..27597b4 100644
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@
#
VERSION = 1.0.9
+DATE := $(shell date +%Y-%m-%d)
CFLAGS ?= -Wall -Werror -g -O2 -pipe
CFLAGS += $(shell pkg-config --cflags libxml-2.0)
@@ -99,7 +100,8 @@ apidocs:
asciidoc $^
%.1: %.txt
- a2x -f manpage $^
+ a2x --asciidoc-opts="-f asciidoc.conf" -a \
+ pacman_tools_version=$(VERSION) -a pacman_tools_date=$(DATE) -f
manpage $^
doc: ../HEADER.html ../Changelog
diff --git a/asciidoc.conf b/asciidoc.conf
new file mode 100644
index 0000000..7cc6774
--- /dev/null
+++ b/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">Pacman-G2 Tools</refmiscinfo>
+ <refmiscinfo
class="version">{pacman_tools_version}</refmiscinfo>
+ <refmiscinfo class="manual">Frugalware Developer
Manual</refmiscinfo>
+ </refmeta>
+ <refentryinfo>
+ <date>{pacman_tools_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