From 18272eafd1dd4c2c594724da3d850e794f191566 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 17:39:32 +0200 Subject: [PATCH] Automated generation of mh-chart.man7. Moved mh-chart from section 1 to section 7, in the same go. Based upon a pull-in from nmh. Thanks a lot to David Levine. Autogenerating is the only sensible approach to mh-chart. --- .gitignore | 1 + man/Makefile.in | 15 +- man/mh-chart-gen.sh | 33 +++ man/mh-chart.man1 | 619 --------------------------------------------------- man/pick.man1 | 1 + man/prompter.man1 | 2 +- man/sendfiles.man1 | 2 +- 7 files changed, 47 insertions(+), 626 deletions(-) create mode 100755 man/mh-chart-gen.sh delete mode 100644 man/mh-chart.man1 diff --git a/.gitignore b/.gitignore index b5b89d6..d83d870 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ /h/Makefile /man/Makefile /man/man.sed +/man/mh-chart.man7 /sbr/Makefile /sbr/dtimep.c /sbr/libmh.a diff --git a/man/Makefile.in b/man/Makefile.in index e7f58be..08a2bc1 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -30,7 +30,7 @@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ SED = sed -SEDMAN = @$(SED) -f man.sed $< > $@ +SEDMAN = $(SED) -f man.sed $< > $@ .SUFFIXES: .SUFFIXES: .man1 .man5 .man7 .man8 \ @@ -50,7 +50,7 @@ SEDMAN = @$(SED) -f man.sed $< > $@ # man pages to install in $(mandir)/$(manext1) MAN1SRC = ali. anno. burst. comp. dist. flist. flists. folder. folders. \ - forw. inc. mark. mh-chart. mhbuild. mhl. mhlist. mmh. \ + forw. inc. mark. mhbuild. mhl. mhlist. mmh. \ mhmail. mhparam. mhpath. mhshow. mhstore. msgchk. new. fnext. \ fprev. unseen. next. packf. pick. prev. prompter. rcvdist. rcvpack. \ rcvstore. refile. repl. rmf. rmm. scan. send. sendfiles. \ @@ -58,7 +58,7 @@ MAN1SRC = ali. anno. burst. comp. dist. flist. flists. folder. folders. \ MAN5SRC = mh-alias. mh-format. mh-mail. mh-profile. mh-tailor. -MAN7SRC = mmh-intro. mh-draft. mh-sequence. +MAN7SRC = mmh-intro. mh-chart. mh-draft. mh-sequence. MAN8SRC = ap. dp. fmtdump. post. @@ -74,15 +74,19 @@ DIST_MAN7 = $(MAN7SRC:.=.man7) DIST_MAN8 = $(MAN8SRC:.=.man8) # auxiliary files -AUX = Makefile.in +AUX = Makefile.in mh-chart-gen.sh # all files in this directory included in the distribution DIST = $(DIST_MAN1) $(DIST_MAN5) $(DIST_MAN7) $(DIST_MAN8) $(AUX) +ALLPROGS = $(DIST_MAN1) $(DIST_MAN8) # ========= DEFAULT TARGET ========== all: $(MAN1) $(MAN5) $(MAN7) $(MAN8) +mh-chart.man7: $(ALLPROGS) + $(srcdir)/mh-chart-gen.sh $(ALLPROGS) >$@ + $(MAN1) $(MAN5) $(MAN7) $(MAN8): man.sed # create the sed file for building man pages @@ -179,7 +183,8 @@ mostlyclean: rm -f *~ clean: mostlyclean - rm -f man.sed *.$(manext1) *.$(manext5) *.$(manext7) *.$(manext8) + rm -f $(MAN1) $(MAN5) $(MAN7) $(MAN8) + rm -f man.sed mh-chart.man7 distclean: clean rm -f Makefile diff --git a/man/mh-chart-gen.sh b/man/mh-chart-gen.sh new file mode 100755 index 0000000..72a2b38 --- /dev/null +++ b/man/mh-chart-gen.sh @@ -0,0 +1,33 @@ +#! /bin/sh +# +# Generates mh-chart man page from other man page source files that have a +# SYNOPSIS section. + +cat <