summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/mpware
diff options
context:
space:
mode:
authorTaco Hoekwater <taco@elvenkind.com>2006-11-20 14:43:48 +0000
committerTaco Hoekwater <taco@elvenkind.com>2006-11-20 14:43:48 +0000
commit5952e40b396499c0cd62bdbcf1853538873b76c1 (patch)
tree968b37e966ba1825e2de091a071774af1a7ffa9b /Build/source/texk/web2c/mpware
parent9fcf4d90b8b3a11712287d4ddf3fd47614a7ea68 (diff)
Metapost 0.99 sources, except dmp
git-svn-id: svn://tug.org/texlive/trunk@2470 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/mpware')
-rw-r--r--Build/source/texk/web2c/mpware/makempx.in8
-rw-r--r--Build/source/texk/web2c/mpware/mpto.c4
-rw-r--r--Build/source/texk/web2c/mpware/newer.c24
3 files changed, 19 insertions, 17 deletions
diff --git a/Build/source/texk/web2c/mpware/makempx.in b/Build/source/texk/web2c/mpware/makempx.in
index 8aaa9bac1dc..0f1c660ca40 100644
--- a/Build/source/texk/web2c/mpware/makempx.in
+++ b/Build/source/texk/web2c/mpware/makempx.in
@@ -1,12 +1,12 @@
#!/bin/sh
-# $Id: makempx.in,v 1.18 2005/06/22 17:33:26 olaf Exp $
+# $Id: makempx.in,v 1.7 2005/04/28 06:45:21 taco Exp $
# Make an MPX file from the labels in a MetaPost source file,
# using mpto and either dvitomp (TeX) or dmp (troff).
# From John Hobby's original (though there's not much of it left by now).
# Public domain.
#
-#
-version=0.9
+#
+version=0.99
: ${DMP=dmp}
: ${DVITOMP=dvitomp}
@@ -17,7 +17,7 @@ version=0.9
: ${NEWER=newer}
# This is oriented towards GNU roff: old value was
# 'eqn -Tpost -d\$\$ | troff -Tpost'
-: ${TROFF='eqn -Tps -d\$\$ | troff -Tps'}
+: ${TROFF='soelim -k | eqn -Tps -d\$\$ | troff -Tps'}
# convert relative path to absolute in $MAKEMPX_BINDIR:
case "$MAKEMPX_BINDIR" in
diff --git a/Build/source/texk/web2c/mpware/mpto.c b/Build/source/texk/web2c/mpware/mpto.c
index 0bc29fc259b..99678221e4b 100644
--- a/Build/source/texk/web2c/mpware/mpto.c
+++ b/Build/source/texk/web2c/mpware/mpto.c
@@ -1,4 +1,4 @@
-/* $Id: mpto.c,v 1.21 2005/08/28 09:17:25 olaf Exp $
+/* $Id: mpto.c,v 1.15 2005/08/28 11:42:55 taco Exp $
* Public domain.
*
* Previous versions of mpto were copyright 1990 - 1995 by AT&T Bell
@@ -280,7 +280,7 @@ main(int argc, char **argv)
exit (0);
} else if (argc > 1 && (strcmp (argv[1], "--version") == 0
|| strcmp (argv[1], "-version") == 0)) {
- printf ("mpto 0.902\n\
+ printf ("mpto 0.99\n\
This program is in the public domain.\n\
Primary author of mpto: John Hobby.\n");
exit (0);
diff --git a/Build/source/texk/web2c/mpware/newer.c b/Build/source/texk/web2c/mpware/newer.c
index 69ab23aeb67..55e9fb4958a 100644
--- a/Build/source/texk/web2c/mpware/newer.c
+++ b/Build/source/texk/web2c/mpware/newer.c
@@ -1,4 +1,5 @@
-/* newer - true if any source file is newer than the target file.
+/* $Id: newer.c,v 1.10 2005/11/30 08:49:55 taco Exp $
+ * newer - true if any source file is newer than the target file.
*
* Public domain.
*
@@ -13,7 +14,7 @@
#endif
#include <stdio.h>
#include <stdlib.h>
-#ifndef WIN32
+#if !defined(WIN32) || defined(__MINGW32__)
#include <sys/types.h>
#include <sys/stat.h>
#endif
@@ -32,7 +33,8 @@
#endif
int i;
-int verbose = 1;
+int verbose = 0;
+int quiet = 0;
int missing_source = 0;
int missing_target = 0;
int result = exit_false;
@@ -63,7 +65,7 @@ main(int argc, char **argv)
strcmp(argv[1], "-quiet") == 0 ||
strcmp(argv[1], "--quiet") == 0) {
- verbose = 0;
+ quiet = 1;
argv++;
argc--;
@@ -75,17 +77,17 @@ main(int argc, char **argv)
one of them is not older than `target'.\n\
Also exit successfully if `target' doesn't exist.\n\
\n\
---help display this help and exit\n\
---quiet do not print anything\n\
---verbose list missing input files (default)\n\
---version output version information and exit\n\n", stdout);
+--help Display this help and exit\n\
+--quiet Do not print anything\n\
+--verbose List missing files, including missing target files\n\
+--version Output version information and exit\n\n", stdout);
fputs ("Email bug reports to metapost@tug.org.\n", stdout);
exit(0);
} else if (strcmp(argv[1], "-version") == 0 ||
strcmp(argv[1], "--version") == 0) {
- fputs("newer 0.901\n\
+ fputs("newer 0.99\n\
This program is in the public domain.\n\
Primary author of newer: John Hobby.\n", stdout);
exit(0);
@@ -108,7 +110,7 @@ Try `newer --help' for more information.\n", stderr);
/* check the target file */
if (stat(argv[argc-1], &target_stat) < 0) {
- if (verbose) {
+ if (verbose && !quiet) {
fprintf(stderr, "newer: target file `%s' doesn't exist.\n",
argv[argc-1]);
}
@@ -118,7 +120,7 @@ Try `newer --help' for more information.\n", stderr);
/* check the source files */
for (i = 1; i < (argc-1); i++) {
if (stat(argv[i], &source_stat) < 0) {
- if (verbose) {
+ if (!quiet) {
fprintf (stderr, "newer: source file `%s' doesn't exist.\n",
argv[i]);
}