[l2h] Re: gs -h does not work suddenly!
Ross Moore
ross@ics.mq.edu.au
Fri, 1 Mar 2002 06:31:04 +1100 (EST)
> Hi Ross
>
> I have the same problem as LT-N.S.M. Donohue on the mailing list.
>
> Suddenly the lastest l2h version, february 24 2002 does no longer
> recongnize the verison of GS i am having. It does find the location of
> the program , /usr/bin/gs' and it does use '$gs -h' to parse its output
> for the version number but it errors out that it can't determine the
> version number. I do have gs version 4.03 installed and all previous
> releases of L2h did successfully find the version number.
>
> So therefore it appers to be not a problem on my machine.
>
> Can you please enlighten me to what may have changed in the latest
> version of L2h to cause this new probelm?
Sorry,
I made a trivial error when adapting the config.pl script to catch
the newest PRE-RELEASE version.
Here's the diff:
landau.ics.mq.edu.au> cvs diff -r 1.39 -r 1.40 config.pl
Index: config.pl
===================================================================
RCS file: /home/latex2ht/cvs/latex2html/user/config/config.pl,v
retrieving revision 1.39
retrieving revision 1.40
diff -r1.39 -r1.40
4c4
< # $Id: config.pl,v 1.39 2002/02/23 23:56:57 RRM Exp $
---
> # $Id: config.pl,v 1.40 2002/02/28 19:25:21 RRM Exp $
26a27,29
> # Revision 1.40 2002/02/28 19:25:21 RRM
> # -- fixed bug in gs version, introduced with previous edit
> #
400c403
< my ($VERSION) = q$Revision: 1.39 $ =~ /:\s*(\S*)/;
---
> my ($VERSION) = q$Revision: 1.40 $ =~ /:\s*(\S*)/;
1015c1018
< if($flag == 0 && /Ghostscript\s*(?:Version|(PRE-|BETA |TESTER )RELEASE|)\s*(\d+[.]?\d*)/i) {
---
> if($flag == 0 && /Ghostscript\s*(?:Version|(?:PRE-|BETA |TESTER )RELEASE|)\s*(\d+[.]?\d*)/i) {
landau.ics.mq.edu.au>
Note the extra (?: in the pattern to keep the parameter number the same.
^^
Mea culpa.
Thanks for the tip-off
Ross
> Thanks a lot
>
> Oliver Schurr
>
>