[m-rev.] diff: fix error in ml and c2init man pages

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Feb 5 23:05:53 AEDT 2002


Estimated hours taken: 0.25
Branches: main

doc/make_manpage:
	Allow "/" characters in section headings, so that it works
	correctly for the heading "dynamic/static linking options",
	which is used in the man pages for `c2init' and `ml'.

Workspace: /mnt/earth/home/earth/fjh/ws-earth4/mercury
Index: doc/make_manpage
===================================================================
RCS file: /home/mercury1/repository/mercury/doc/make_manpage,v
retrieving revision 1.7
diff -u -d -r1.7 make_manpage
--- doc/make_manpage	2000/11/02 11:06:42	1.7
+++ doc/make_manpage	2002/02/05 12:02:06
@@ -27,9 +27,9 @@
 
 manpage="`$program --help 2>&1 \
 	| sed	\
-		-e '/^[A-Za-z ]*:[ 	]/s//.SH &\\
+		-e '/^[\/A-Za-z ]*:[ 	]/s//.SH &\\
 /'			\
-		-e '/^[A-Za-z ]*:/s//.SH &\\
+		-e '/^[\/A-Za-z ]*:/s//.SH &\\
 /'			\
 		-e '/^	[^-	].*:/s/^	.*$/	.Ve\\
 .B\\
@@ -47,7 +47,7 @@
 		-e 's/^		/	\\\\\\&	/g' 	\
 		-e 's/^	//' \
 	| sed	\
-		-e '/^.SH [A-Za-z ]*:/y/\
+		-e '/^.SH [\/A-Za-z ]*:/y/\
 abcdefghijklmnopqrstuvwxyz:/\
 ABCDEFGHIJKLMNOPQRSTUVWXYZ /' \
 		-e 's/^.SH USAGE/.SH SYNOPSIS/' \

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list