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

commit 367b3aaee13e04bb144ac831336e82839b939643
Author: VMiklos <[EMAIL PROTECTED]>
Date:   Sun Sep 30 22:31:48 2007 +0200

source/include: move fwmakepkg.3 from pacman-tools
fwmakepkg manpage is used to refer to all foo.sh(3) manpages generated from
include/*.sh, so it's logical to have it here

diff --git a/source/include/Makefile b/source/include/Makefile
index be6de53..756e00c 100644
--- a/source/include/Makefile
+++ b/source/include/Makefile
@@ -17,21 +17,25 @@

XML_PATH = /usr/share/sgml/docbook/dtd/xml-dtd-4.2

-all: $(subst .sh,.sh.3,$(wildcard *.sh))
+all: $(subst .sh,.sh.3,$(wildcard *.sh)) fwmakepkg.3

stat:
@echo $(shell ls *.3|wc -l)/$(shell ls *.sh|wc -l)

%.sh.txt: %.sh
-       sed -n 's/^#\( \|$$\)//;/^###/,/^###/p' $(basename $@)|sed 's/^###//' > 
$@
+       sed -n 's/^#\( \|$$\)//;/^###/,/^###/p' $^|sed 's/^###//' > $@

-%.sh.xml: %.sh.txt
-       asciidoc -d manpage -b docbook $(basename $@).txt
+%.xml: %.txt
+       asciidoc -d manpage -b docbook $^
sed -i '/<!DOCTYPE/s|\("http[^"].*"\)|"file://$(XML_PATH)/docbookx.dtd"|' $@

-%.sh.3: %.sh.xml
-       xsltproc --nonet --path $(XML_PATH) 
/etc/asciidoc/docbook-xsl/manpage.xsl $(basename $@).xml
+%.3: %.xml
+       xsltproc --nonet --path $(XML_PATH) 
/etc/asciidoc/docbook-xsl/manpage.xsl $^
sed -i 's/\\(bu/*/' $@

+fwmakepkg.txt: fwmakepkg.txt.in $(wildcard *.sh)
+       cat fwmakepkg.txt.in > fwmakepkg.txt
+       ls *.sh|sed '$$!s/\(.*\)$$/\*\1\*(3),/;$$s/\(.*\)$$/*\1*(3)/' >> 
fwmakepkg.txt
+
clean:
rm -f *.3 *.txt *.xml
diff --git a/source/include/fwmakepkg.txt.in b/source/include/fwmakepkg.txt.in
new file mode 100644
index 0000000..f88f816
--- /dev/null
+++ b/source/include/fwmakepkg.txt.in
@@ -0,0 +1,16 @@
+= fwmakepkg(3)
+
+== NAME
+
+fwmakepkg - Collection of macros used in Frugalware buildscripts
+
+== SYNOPSIS
+
+This manpage refers to all schemas which can be Fincluded in a FrugalBuild.
+
+== REPORTING BUGS
+
+Please report bugs to the <http://bugs.frugalware.org/> bug tracking system.
+
+== SEE ALSO
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to