summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-07-15 17:44:10 +0000
committerKarl Berry <karl@freefriends.org>2007-07-15 17:44:10 +0000
commitec9ba8a54ddc45a34e5044f965be96264373390e (patch)
tree8a0ff9710a74cbc05b69a40bb6b7dc1337d5f6ae /Build
parentf57eee2c7b7f606f0f0be77bef1e6796b91bdc05 (diff)
check from akira for new mpost, 0.13.3
git-svn-id: svn://tug.org/texlive/trunk@4592 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm/ChangeLog5
-rw-r--r--Build/source/texk/dvipdfm/mpost.c14
-rw-r--r--Build/source/texk/dvipdfm/version2
3 files changed, 15 insertions, 6 deletions
diff --git a/Build/source/texk/dvipdfm/ChangeLog b/Build/source/texk/dvipdfm/ChangeLog
index 1972c011002..b947819ca9e 100644
--- a/Build/source/texk/dvipdfm/ChangeLog
+++ b/Build/source/texk/dvipdfm/ChangeLog
@@ -1,3 +1,8 @@
+2007-07-15 Karl Berry <karl@tug.org>
+
+ * version: change to 0.13.3.
+ * new check for MetaPost (>0.9) output.
+
2000-07-25 Mark A. Wicks <mwicks@betelgeuse.localdomain>
* Changed version to 0.13
diff --git a/Build/source/texk/dvipdfm/mpost.c b/Build/source/texk/dvipdfm/mpost.c
index 4f84393312c..9f8803e0272 100644
--- a/Build/source/texk/dvipdfm/mpost.c
+++ b/Build/source/texk/dvipdfm/mpost.c
@@ -42,17 +42,21 @@
int check_for_mp (FILE *image_file)
{
+ int i;
+ int n = 0;
rewind (image_file);
/* For now, this is an exact test that must be passed, character for
character */
mfgets (work_buffer, WORK_BUFFER_SIZE, image_file);
if (strncmp (work_buffer, "%!PS", 4))
return 0;
- mfgets (work_buffer, WORK_BUFFER_SIZE, image_file);
- if (strncmp (work_buffer, "%%BoundingBox", strlen("%%BoundingBox")))
- return 0;
- mfgets (work_buffer, WORK_BUFFER_SIZE, image_file);
- if (strncmp (work_buffer, "%%Creator: MetaPost", strlen("%%Creator: MetaPost")))
+ for(i=0; i < 10; i++) {
+ mfgets (work_buffer, WORK_BUFFER_SIZE, image_file);
+ if(strncmp(work_buffer, "%%Creator: MetaPost", strlen("%%Creator: MetaPost"))
+ == 0)
+ n++;
+ }
+ if(n == 0)
return 0;
return 1;
}
diff --git a/Build/source/texk/dvipdfm/version b/Build/source/texk/dvipdfm/version
index cad203ec44b..288adf538f0 100644
--- a/Build/source/texk/dvipdfm/version
+++ b/Build/source/texk/dvipdfm/version
@@ -1 +1 @@
-0.13.2c
+0.13.3