[m-rev.] For review: make mmc --help generate output that can be turned into a more-correct man page.

Paul Bone pbone at csse.unimelb.edu.au
Tue May 5 16:27:54 AEST 2009


For review by anyone.

Estimated hours taken: 0.1

Make mmc --help generate output that can be turned into a more correct man
page.  Namely the NAME section of the man page was not being generated which is
used by apropos to search for man pages.  This fixes a lintian warning when
generating a debian package.

compiler/handle_options.m:
    As above

Index: compiler/handle_options.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/handle_options.m,v
retrieving revision 1.332
diff -u -p -b -r1.332 handle_options.m
--- compiler/handle_options.m	24 Apr 2009 02:57:55 -0000	1.332
+++ compiler/handle_options.m	5 May 2009 05:49:15 -0000
@@ -2312,8 +2312,9 @@ long_usage(!IO) :-
     % copies of the long usage message. We can print both a short and along
     % usage message, but there is no simple way to avoid that.
     library.version(Version),
-    io.write_strings(["Mercury Compiler, version ", Version, "\n"], !IO),
-    io.write_string("Copyright (C) 1993-2009 " ++
+    io.write_strings(["Name: mmc -- Melbourne Mercury Compiler, version ", 
+        Version, "\n"], !IO),
+    io.write_string("Copyright: Copyright (C) 1993-2009 " ++
         "The University of Melbourne\n", !IO),
     io.write_string("Usage: mmc [<options>] <arguments>\n", !IO),
     io.write_string("Arguments:\n", !IO),

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20090505/660a9605/attachment.sig>


More information about the reviews mailing list