texlive[75940] Build/source/texk/web2c/mplibdir: MetaPost: Fixed and

commits+lscarso at tug.org commits+lscarso at tug.org
Fri Aug 1 21:19:14 CEST 2025


Revision: 75940
          https://tug.org/svn/texlive?view=revision&revision=75940
Author:   lscarso
Date:     2025-08-01 21:19:14 +0200 (Fri, 01 Aug 2025)
Log Message:
-----------
MetaPost: Fixed and reorganized the help message,
updated the manual for the supported 
option --output-directory (thanks to Karl Berry)

Modified Paths:
--------------
    trunk/Build/source/texk/web2c/mplibdir/ChangeLog
    trunk/Build/source/texk/web2c/mplibdir/mp.w
    trunk/Build/source/texk/web2c/mplibdir/mpost.w

Modified: trunk/Build/source/texk/web2c/mplibdir/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/ChangeLog	2025-07-31 23:41:35 UTC (rev 75939)
+++ trunk/Build/source/texk/web2c/mplibdir/ChangeLog	2025-08-01 19:19:14 UTC (rev 75940)
@@ -1,3 +1,10 @@
+2025-07-27  Luigi Scarso <luigi.scarso at gmail.com>
+
+	* Fixed and reorganized the help message,
+	updated the manual for the supported 
+        option --output-directory (thanks to Karl Berry)
+
+
 2025-07-02  Luigi Scarso <luigi.scarso at gmail.com>
 
 	* Fixed two single unescaped '%' in mpxout.w;

Modified: trunk/Build/source/texk/web2c/mplibdir/mp.w
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/mp.w	2025-07-31 23:41:35 UTC (rev 75939)
+++ trunk/Build/source/texk/web2c/mplibdir/mp.w	2025-08-01 19:19:14 UTC (rev 75940)
@@ -71,12 +71,12 @@
 @^extensions to \MP@>
 @^system dependencies@>
 
- at d default_banner "This is MetaPost, Version 2.11" /* printed when \MP\ starts */
+ at d default_banner "This is MetaPost, Version 2.12" /* printed when \MP\ starts */
 @d true 1
 @d false 0
 
 @<\MP\ version header@>=
-#define metapost_version "2.11"
+#define metapost_version "2.12"
 
 @ The external library header for \MP\ is |mplib.h|. It contains a
 few typedefs and the header defintions for the externally used

Modified: trunk/Build/source/texk/web2c/mplibdir/mpost.w
===================================================================
--- trunk/Build/source/texk/web2c/mplibdir/mpost.w	2025-07-31 23:41:35 UTC (rev 75939)
+++ trunk/Build/source/texk/web2c/mplibdir/mpost.w	2025-08-01 19:19:14 UTC (rev 75940)
@@ -958,9 +958,10 @@
     } else if (ARGUMENT_IS("8bit") ||
                ARGUMENT_IS("parse-first-line")) {
       /* do nothing, these are always on */
+      fprintf(stdout,"warning: %s: option -%s is always enabled\n", argv[0], mpost_options[optionid].name);
     } else if (ARGUMENT_IS("translate-file") ||
                ARGUMENT_IS("no-parse-first-line")) {
-      fprintf(stdout,"warning: %s: unimplemented option %s\n", argv[0], argv[optind]);
+      fprintf(stdout,"warning: %s: unimplemented option -%s\n", argv[0], mpost_options[optionid].name);
     } 
   } 
   options->ini_version = (int)ini_version_test;
@@ -1029,32 +1030,43 @@
 "  With a --dvitomp argument, MetaPost acts as DVI-to-MPX converter only.\n"
 "  Call MetaPost with --dvitomp --help for option explanations.\n\n");
 fprintf(stdout,
+"MetaPost options:\n"  
+"  -debug                    print debugging info and leave temporary files\n"
+"                            in place\n"
+"  -mem=STRING               Use STRING for the name of the file that contains\n"
+"                            macros to be preloaded (same as &MPNAME)\n" 
+"  -numbersystem=STRING      set number system mode\n"
+"                            (STRING=scaled/double/binary/interval/decimal)\n"
+"  -restricted               be secure: disable tex, makempx and editor commands\n"
+"  -tex=TEXPROGRAM           use TEXPROGRAM for text labels\n"
+"  -troff                    set prologues:=1 and assume TEXPROGRAM is\n"
+"                            really troff\n"
+"  -T                        same as -troff\n"
+"  -s INTERNAL=\"STRING\"      set internal INTERNAL to the string value STRING\n"
+"  -s INTERNAL=NUMBER        set internal INTERNAL to the integer value NUMBER\n"
+);
+fprintf(stdout,
+"\n"
+"Common options:\n"
+"  [-no]-file-line-error     disable/enable file:line:error style messages\n"
+"  -halt-on-error            stop processing at the first error\n"
+"  -help                     display this help and exit\n"
 "  -ini                      do not load any preload file\n"
 "  -interaction=STRING       set interaction mode (STRING=batchmode/nonstopmode/\n"
 "                            scrollmode/errorstopmode)\n"
-"  -numbersystem=STRING      set number system mode (STRING=scaled/double/binary/interval/decimal)\n"
 "  -jobname=STRING           set the job name to STRING\n"
-"  -progname=STRING          set program (and mem) name to STRING\n"
-"  -tex=TEXPROGRAM           use TEXPROGRAM for text labels\n"
-"  [-no]-file-line-error     disable/enable file:line:error style messages\n"
+"  -kpathsea-debug=NUMBER    set path searching debugging flags according to\n"
+"                            the bits of NUMBER\n"
 "  -no-kpathsea              Do not use the kpathsea program to find files.\n"
-"                            All files have to be in the current directory\n" 
+"                            All files have to be in the current directory\n"
 "                            or specified via a full path.\n"
+"  -output-directory=DIR     use existing DIR as the directory\n"
+"                            to write files in\n"
+"  -progname=STRING          set program (and mem) name to STRING\n"
+"  -recorder                 enable filename recorder\n"
+"  -version                  output version information and exit\n"
 );
 fprintf(stdout,
-"  -debug                    print debugging info and leave temporary files in place\n"
-"  -kpathsea-debug=NUMBER    set path searching debugging flags according to\n"
-"                            the bits of NUMBER\n"
-"  -mem=STRING               Use STRING for the name of the file that contains macros\n"
-"                            to be preloaded (same as &MPNAME)\n" 
-"  -recorder                 enable filename recorder\n"
-"  -restricted               be secure: disable tex, makempx and editor commands\n"
-"  -troff                    set prologues:=1 and assume TEXPROGRAM is really troff\n"
-"  -T                        same as -troff\n"
-"  -s INTERNAL=\"STRING\"      set internal INTERNAL to the string value STRING\n"
-"  -s INTERNAL=NUMBER        set internal INTERNAL to the integer value NUMBER\n"
-"  -help                     display this help and exit\n"
-"  -version                  output version information and exit\n"
 "\n"
 "Email bug reports to mp-implementors@@tug.org.\n"
 "\n");



More information about the tex-live-commits mailing list.