summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mplibdir/mpost.w
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2011-04-05 15:03:39 +0000
committerTaco Hoekwater <taco@elvenkind.com>2011-04-05 15:03:39 +0000
commit540927ad17a1d3f65acd988f4f93edf13d4b303e (patch)
treea10e681396bb0e38d080c7f6e312c915d380b7e2 /Build/source/texk/web2c/mplibdir/mpost.w
parent3bd11c5b320d265b89c965f63f57018ef818b876 (diff)
and here is metapost 1.504 (which is still tentative)
git-svn-id: svn://tug.org/texlive/trunk@21976 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mplibdir/mpost.w')
-rw-r--r--Build/source/texk/web2c/mplibdir/mpost.w10
1 files changed, 7 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/mplibdir/mpost.w b/Build/source/texk/web2c/mplibdir/mpost.w
index 54147b24ec6..eb92253f361 100644
--- a/Build/source/texk/web2c/mplibdir/mpost.w
+++ b/Build/source/texk/web2c/mplibdir/mpost.w
@@ -1,4 +1,4 @@
-% $Id: mpost.w 1422 2010-10-19 07:26:52Z taco $
+% $Id: mpost.w 1598 2011-04-05 14:14:16Z taco $
%
% Copyright 2008-2009 Taco Hoekwater.
%
@@ -1217,8 +1217,12 @@ int main (int argc, char **argv) { /* |start_here| */
options = mp_options();
options->ini_version = (int)false;
options->print_found_names = (int)true;
- if (strstr(argv[0], "dvitomp") != NULL) {
- dvitomp_only=1;
+ {
+ const char *base = xbasename(argv[0]);
+ if (!strcmp(base, "dvitomp") || !strcasecmp(base, "dvitomp.exe"))
+ dvitomp_only=1;
+ }
+ if (dvitomp_only) {
@<Read and set dvitomp command line options@>;
} else {
@<Read and set command line options@>;