From ec9ba8a54ddc45a34e5044f965be96264373390e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sun, 15 Jul 2007 17:44:10 +0000 Subject: check from akira for new mpost, 0.13.3 git-svn-id: svn://tug.org/texlive/trunk@4592 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipdfm/ChangeLog | 5 +++++ Build/source/texk/dvipdfm/mpost.c | 14 +++++++++----- Build/source/texk/dvipdfm/version | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) (limited to 'Build') 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 + + * version: change to 0.13.3. + * new check for MetaPost (>0.9) output. + 2000-07-25 Mark A. Wicks * 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 -- cgit v1.2.3