diff options
author | wl <wl> | 2006-11-14 10:37:51 +0000 |
---|---|---|
committer | wl <wl> | 2006-11-14 10:37:51 +0000 |
commit | 83372e026dbc35d69a2c989fa3b8de15d655f4e4 (patch) | |
tree | 44b0c26881fb6535583c19376506db7187b2ea8e /contrib/groffer | |
parent | 1630b7d2f588b70d798cd79232b92f7462ea7089 (diff) | |
download | groff-83372e026dbc35d69a2c989fa3b8de15d655f4e4.tar.gz |
* Makefile.sub (GROFFER_REST): Add roff2.man.
(groffer): Use $(INSTALL_DATA) for man pages.
Don't call `chmod' for $(ROFF2PROGS).
(roff2.man): Typographical fixes.
Diffstat (limited to 'contrib/groffer')
-rw-r--r-- | contrib/groffer/ChangeLog | 7 | ||||
-rw-r--r-- | contrib/groffer/Makefile.sub | 19 | ||||
-rw-r--r-- | contrib/groffer/roff2.man | 105 |
3 files changed, 89 insertions, 42 deletions
diff --git a/contrib/groffer/ChangeLog b/contrib/groffer/ChangeLog index 368f9888..86bb4c88 100644 --- a/contrib/groffer/ChangeLog +++ b/contrib/groffer/ChangeLog @@ -1,3 +1,10 @@ +2006-11-14 Werner LEMBERG <wl@gnu.org> + + * Makefile.sub (GROFFER_REST): Add roff2.man. + (groffer): Use $(INSTALL_DATA) for man pages. + Don't call `chmod' for $(ROFF2PROGS). + (roff2.man): Typographical fixes. + 2006-11-11 Bernd Warken ________________________________________________________________ * release of groffer 1.1.1 diff --git a/contrib/groffer/Makefile.sub b/contrib/groffer/Makefile.sub index f690065e..102d8232 100644 --- a/contrib/groffer/Makefile.sub +++ b/contrib/groffer/Makefile.sub @@ -5,7 +5,7 @@ # Copyright (C) 2001,2002,2005,2006 Free Software Foundation, Inc. # Written by Werner Lemberg <wl@gnu.org> and Bernd Warken. -# Last update: 8 Nov 2006 +# Last update: 14 Nov 2006 # This file is part of `groffer' which is part of `groff'. @@ -32,10 +32,15 @@ ROFF2MAN=`echo $(ROFF2MODES) | sed 's/[a-z][a-z]*/roff2&.man/g'` ROFF2MANN=`echo $(ROFF2MODES) | sed 's/[a-z][a-z]*/roff2&.n/g'` MAN1=groffer.n \ -roff2dvi.n roff2html.n roff2pdf.n roff2ps.n roff2text.n roff2x.n + roff2dvi.n \ + roff2html.n \ + roff2pdf.n \ + roff2ps.n \ + roff2text.n \ + roff2x.n CLEANADD=groffer HAVE_PERL HAVE_SHELL groffer.man \ -$(MAN1) $(ROFF2MAN) $(ROFF2PROGS) + $(MAN1) $(ROFF2MAN) $(ROFF2PROGS) # not all make programs have $(RM) predefined. RM=rm -f @@ -47,7 +52,8 @@ GROFFER_PERL=$(srcdir)/perl/func.pl \ $(srcdir)/perl/perl_test.pl \ $(srcdir)/perl/split_env.sh GROFFER_SHELL=$(srcdir)/shell/groffer2.sh -GROFFER_REST=$(srcdir)/version.sh \ +GROFFER_REST=$(srcdir)/roff2.man \ + $(srcdir)/version.sh \ $(srcdir)/perl/groffer.man \ $(srcdir)/perl/groffer.pl \ $(srcdir)/perl/roff2.pl \ @@ -73,7 +79,7 @@ groffer: $(GROFFER_PERL) $(GROFFER_SHELL) \ -e "s|@VERSION@|$(version)$(revision)|g" \ -e "$(SH_SCRIPT_SED_CMD)" \ $(srcdir)/perl/groffer.pl >$@; \ - $(INSTALL_SCRIPT) $(srcdir)/perl/groffer.man groffer.man; \ + $(INSTALL_DATA) $(srcdir)/perl/groffer.man groffer.man; \ for f in $(ROFF2PROGS); do \ $(INSTALL_SCRIPT) $(srcdir)/perl/roff2.pl $$f; \ done; \ @@ -87,13 +93,12 @@ groffer: $(GROFFER_PERL) $(GROFFER_SHELL) \ -e "s|@VERSION@|$(version)$(revision)|g" \ -e "$(SH_SCRIPT_SED_CMD)" \ $(srcdir)/shell/groffer.sh >$@; \ - $(INSTALL_SCRIPT) $(srcdir)/shell/groffer.man groffer.man; \ + $(INSTALL_DATA) $(srcdir)/shell/groffer.man groffer.man; \ for f in $(ROFF2PROGS); do \ $(INSTALL_SCRIPT) $(srcdir)/shell/roff2.sh $$f; \ done; \ fi chmod +x $@ - chmod +x $(ROFF2PROGS) for m in $(ROFF2MODES); do \ cat $(srcdir)/roff2.man \ | sed 's/@ROFF2MODE@/'"$$m"'/g' > roff2$${m}.man; \ diff --git a/contrib/groffer/roff2.man b/contrib/groffer/roff2.man index 6c0f248e..e1ec7a28 100644 --- a/contrib/groffer/roff2.man +++ b/contrib/groffer/roff2.man @@ -5,6 +5,7 @@ roff2@ROFF2MODE@ \- transform roff code into @ROFF2MODE@ mode .SH "SYNOPSIS" .\" The .SH was moved to this place in order to appease `apropos'. . +. .\" -------------------------------------------------------------------- .\" Legalize .\" -------------------------------------------------------------------- @@ -12,15 +13,19 @@ roff2@ROFF2MODE@ \- transform roff code into @ROFF2MODE@ mode .ig roff2@ROFF2MODE@.1 - man page for roff2@ROFF2MODE@ (section 1). -Source file position: <groff_source_top>/contrib/groffer/roff2.man -Installed position: $prefix/share/man/man1/roff2@ROFF2MODE@.1 +Source file position: <groff_source_top>/contrib/groffer/roff2.man +Installed position: $prefix/share/man/man1/roff2@ROFF2MODE@.1 -Last update: 8 Nov 2006 +Last update: 14 Nov 2006 .. +. +. .de author This file was written by .MTO "" "Bernd Warken" . .. +. +. .de copyleft Copyright (C) 2006 Free Software Foundation, Inc. . @@ -39,7 +44,7 @@ as published by the .nh .BR "Free Software Foundation" , .hy -either version 2, or (at your option) any later version. +either version\~2, or (at your option) any later version. . .P You should have received a copy of the \f[CR]GNU General Public @@ -78,7 +83,7 @@ You can also write to the . ftr CB CW .\} . -.ds Ellipsis "\&.\|.\|.\"" +.ds Ellipsis "\&.\|.\|.\&\"" . . .\" -------------------------------------------------------------------- @@ -87,6 +92,8 @@ You can also write to the .\" Ignore all arguments like a comment, even after a .eo call. .de c .. +. +. .c -------------------------------------------------------------------- .c .File_name (<path_name>) .c @@ -95,6 +102,8 @@ You can also write to the .de File_name . Header_CB \\$@ .. +. +. .c -------------------------------------------------------------------- .c .Header_CB (<path_name>) .c @@ -105,10 +114,13 @@ You can also write to the . Text \f[CB]\\$1\f[]\\$2 . hy .. +. +. .c -------------------------------------------------------------------- -.c static register for inter-macro communication in `.Synopsis'* +.c static register for inter-macro communication in `.Synopsis'. .nr roff2:Synopsis.level 0 . +. .c -------------------------------------------------------------------- .c .Synopsis () .c @@ -128,6 +140,8 @@ You can also write to the . rm @1 . nr roff2:Synopsis.level +1\" marker for ./Synopsis .. +. +. .c -------------------------------------------------------------------- .c ./Synopsis () .c @@ -142,6 +156,8 @@ You can also write to the . hy . nr roff2:Synopsis.level -1 .. +. +. .c -------------------------------------------------------------------- .c .Text (<text>...) .c @@ -215,7 +231,7 @@ arguments of .BR \%groffer . So they are either the names of existing, readable files or .B \- -for standard input or the name of a man page or a +for standard input, or the name of a man page or a .BR \%groffer (@MAN1EXT@) man page search pattern. . @@ -251,46 +267,59 @@ There are more of these programs for generating other formats of .I \%roff input. . -.TP -.BR \%roff2dvi (@MAN1EXT@) +.if !'@ROFF2MODE@'dvi' \{\ +. TP +. BR \%roff2dvi (@MAN1EXT@) is for -.I dvi +. I dvi mode. +.\} . -.TP -.BR \%roff2html (@MAN1EXT@) +.if !'@ROFF2MODE@'html' \{\ +. TP +. BR \%roff2html (@MAN1EXT@) generates -.I html +. I html output. +.\} . -.TP -.BR \%roff2pdf (@MAN1EXT@) +.if !'@ROFF2MODE@'pdf' \{\ +. TP +. BR \%roff2pdf (@MAN1EXT@) outputs -.I pdf +. I pdf mode. +.\} . -.TP -.BR \%roff2ps (@MAN1EXT@) +.if !'@ROFF2MODE@'ps' \{\ +. TP +. BR \%roff2ps (@MAN1EXT@) prints -.I \%PostScript +. I \%PostScript format to standard output. -.TP -.BR \%roff2text (@MAN1EXT@) +.\} +. +.if !'@ROFF2MODE@'text' \{\ +. TP +. BR \%roff2text (@MAN1EXT@) generates text output in the -.B groff +. B groff device -.IR latin1 . +. IR latin1 . +.\} . -.TP -.BR \%roff2x (@MAN1EXT@) +.if !'@ROFF2MODE@'x' \{\ +. TP +. BR \%roff2x (@MAN1EXT@) prints the output in the -.B groff +. B groff device -.B X +. B X that is suitable for programs like -.BR \%gxditview (@MAN1EXT@) +. BR \%gxditview (@MAN1EXT@) or -.BR \%xditview (1). +. BR \%xditview (1). +.\} . . .\" -------------------------------------------------------------------- @@ -299,12 +328,18 @@ or . .BR \%groff (@MAN1EXT@), .BR \%groffer (@MAN1EXT@), -.BR \%roff2dvi (@MAN1EXT@), -.BR \%roff2html (@MAN1EXT@), -.BR \%roff2pdf (@MAN1EXT@), -.BR \%roff2ps (@MAN1EXT@), -.BR \%roff2text (@MAN1EXT@), -.BR \%roff2x (@MAN1EXT@), +.if !'@ROFF2MODE@'dvi' \ +. BR \%roff2dvi (@MAN1EXT@), +.if !'@ROFF2MODE@'html' \ +. BR \%roff2html (@MAN1EXT@), +.if !'@ROFF2MODE@'pdf' \ +. BR \%roff2pdf (@MAN1EXT@), +.if !'@ROFF2MODE@'ps' \ +. BR \%roff2ps (@MAN1EXT@), +.if !'@ROFF2MODE@'text' \ +. BR \%roff2text (@MAN1EXT@), +.if !'@ROFF2MODE@'x' \ +. BR \%roff2x (@MAN1EXT@), .BR \%gxditview (@MAN1EXT@). . . |