summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Quinson <mquinson@debian.org>2004-02-23 16:34:39 +0000
committerMartin Quinson <mquinson@debian.org>2004-02-23 16:34:39 +0000
commit2daea757f80bf00a51c6399dad8fc31cd4f11138 (patch)
tree123563653c1b94cb29076ea4facd7a27c9d62275
parentc7237cdeb9c6f942c905b5e955d2905b0aed9fb0 (diff)
downloadquilt-2daea757f80bf00a51c6399dad8fc31cd4f11138.tar.gz
Add a man page generated automatically from -h
-rw-r--r--Makefile.in32
-rw-r--r--quilt.changes5
2 files changed, 34 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 90c67f2..08982e5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -75,7 +75,7 @@ LIB := backup-files
SRC += $(LIB_SRC:%=lib/%)
DIRT += lib/backup-files lib/backup-files.o
-DOC_IN := README
+DOC_IN := README
DOC_SRC := $(DOC_IN:%=doc/%.in)
DOC := $(DOC_IN)
SRC += $(DOC_SRC)
@@ -83,7 +83,7 @@ SRC += doc/main.tex doc/quilt.pdf doc/Makefile \
doc/sample.quiltrc
DIRT += $(DOC_IN:%=doc/%)
-MAN1 := bin/guards.1
+MAN1 := bin/guards.1 doc/quilt.1
#DEBIAN := changelog control copyright rules
#
@@ -112,7 +112,7 @@ rpm rpmbuild : $(PACKAGE)-$(VERSION).tar.gz
$(RPMBUILD) -ta $<
doc/README : doc/README.in
- @echo README.in -> README
+ @echo "README.in -> README"
@while read line; do \
case "$$line" in \
'@REFERENCE''@') \
@@ -123,6 +123,32 @@ doc/README : doc/README.in
;; \
esac ; \
done 2>&1 < $< > $@
+
+doc/quilt.1: doc/quilt.1.in
+ @echo "quilt.1.in -> quilt.1"
+ @while read line; do \
+ case "$$line" in \
+ '@REFERENCE''@') \
+ for cmd in $(QUILT:%=quilt/%) ; do \
+ (bash -c ". scripts/patchfns ; LC_ALL=C . $$cmd -h")| \
+ sed -e 's/Usage: quilt //' \
+ -e 's/^\([^ ]*\)/\\fB\1\\fP/' \
+ -e 's/^/.IP "/' -e 's/$$/ " 4/' | \
+ head -n 1; \
+ echo ; \
+ (bash -c ". scripts/patchfns ; LC_ALL=C . $$cmd -h")| \
+ grep -v 'Usage: quilt' | \
+ sed -e 's/^\t//' \
+ -e 's/\t/\n/' | \
+ sed -e 's/^\(-.*\)$$/.IP " \1" 8/';\
+ echo; \
+ done \
+ ;; \
+ *) \
+ echo "$$line" \
+ ;; \
+ esac ; \
+ done 2>&1 < $< > $@
.PHONY :: reference
reference : $(QUILT:%=quilt/%) scripts/patchfns
diff --git a/quilt.changes b/quilt.changes
index 19fea8b..02ddbab 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Sun, 22 Feb 2004 16:04:36 -0800 - martin.quinson@tuxfamily.org
+
+- Add a man page (generated automatically from -h)
+
+-------------------------------------------------------------------
Sat Feb 21 15:20:57 CET 2004 - agruen@suse.de
- Sub-directory support: `quilt setup' could get confused, too.