[Frugalware-git] frugalwareutils: convert libfrugalwareutils manpage to asciidoc

Miklos Vajna vmiklos at frugalware.org
Mon Nov 5 15:17:36 CET 2007


Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalwareutils.git;a=commitdiff;h=4013a773520714c72a245af22c18008153642ec7

commit 4013a773520714c72a245af22c18008153642ec7
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Mon Nov 5 15:10:38 2007 +0100

convert libfrugalwareutils manpage to asciidoc

diff --git a/apidoc/Makefile b/apidoc/Makefile
index 9f5482e..1d63fc4 100644
--- a/apidoc/Makefile
+++ b/apidoc/Makefile
@@ -19,7 +19,11 @@
-include ../Makefile.inc
-include ../config.mak

+ifneq ($(asciidoc),)
+compile: frugalwareutils.3
+else
compile:
+endif
ifneq ($(doxygen),)
cd .. && doxygen Doxyfile
rm -rf man3/_*
@@ -27,12 +31,24 @@ endif

install:
ifneq ($(doxygen),)
-	for i in man3/* frugalwareutils.3; do \
+	for i in man3/*; do \
$(INSTALL) -m644 $$i $(DESTDIR)$(mandir)/man3/; \
done
endif
+ifneq ($(asciidoc),)
+	$(INSTALL) -m644 frugalwareutils.3 $(DESTDIR)$(mandir)/man3/
+endif

clean:
rm -rf man3
+	rm -f frugalwareutils.3

prepare:
+
+frugalwareutils.3:
+	asciidoc -d manpage -b docbook frugalwareutils.txt
+	sed -i '/<!DOCTYPE/s|\("http[^"].*"\)|"file:///usr/share/sgml/docbook/dtd/xml-dtd-4.2/docbookx.dtd"|' \
+		frugalwareutils.xml
+	xsltproc -o frugalwareutils.3 --nonet --path /usr/share/sgml/docbook/dtd/xml-dtd-4.2 \
+		/etc/asciidoc/docbook-xsl/manpage.xsl frugalwareutils.xml
+	sed -i 's/\\(bu/*/' frugalwareutils.3
diff --git a/apidoc/frugalwareutils.3 b/apidoc/frugalwareutils.3
deleted file mode 100644
index c67947f..0000000
--- a/apidoc/frugalwareutils.3
+++ /dev/null
@@ -1,25 +0,0 @@
-.TH frugalwareutils 3 "17 Jun 2006" "Frugalware 0.5" ""
-.SH NAME
-frugalwareutils \- Developer documentation for the Frugalware configuration
-libraries
-.SH SYNOPSIS
-For ease of access, the frugalwareutils manual has been split up into several
-sections.
-
-.nf
-libfwutil           Functions to make writing Frugalware configuration tools
-                    easier.
-libfwdialog         Functions to make libdialog usage easier.
-libfwnetconfig      Functions to make network configuration easier.
-libfwtimeconfig     Functions to make time configuration easier.
-libfwraidconfig     Functions to make RAID configuration easier.
-libfwmouseconfig    Functions to make mouse configuration easier.
-libfwxconfig        Functions to make X configuration easier.
-libfwxwmonfig       Functions to make XDM configuration easier.
-libfwgrubonfig      Functions to make GRUB configuration easier.
-.fi
-
-.SH AUTHORS
-Written by Miklos Vajna.
-.SH "REPORTING BUGS"
-If you find any bug, then please file a bugreport at <http://bugs.frugalware.org/>.
diff --git a/apidoc/frugalwareutils.txt b/apidoc/frugalwareutils.txt
new file mode 100644
index 0000000..caa9515
--- /dev/null
+++ b/apidoc/frugalwareutils.txt
@@ -0,0 +1,27 @@
+= libfrugalwareutils(3)
+
+== NAME
+
+frugalwareutils - Developer documentation for the Frugalware configuration libraries
+
+== SYNOPSIS
+
+For ease of access, the frugalwareutils manual has been split up into several sections.
+
+libfwutil::	Functions to make writing Frugalware configuration tools easier.
+libfwdialog::	Functions to make libdialog usage easier.
+libfwnetconfig::	Functions to make network configuration easier.
+libfwtimeconfig::	Functions to make time configuration easier.
+libfwraidconfig::	Functions to make RAID configuration easier.
+libfwmouseconfig::	Functions to make mouse configuration easier.
+libfwxconfig::	Functions to make X configuration easier.
+libfwxwmonfig::	Functions to make XDM configuration easier.
+libfwgrubonfig::	Functions to make GRUB configuration easier.
+
+== AUTHOR
+
+Written by Miklos Vajna.
+
+== REPORTING BUGS
+
+If you find any bug, then please file a bugreport at <http://bugs.frugalware.org/>.


More information about the Frugalware-git mailing list