[l2h] Ghostscript version tweak to config.pl

Ross Moore Ross Moore <ross@ics.mq.edu.au>
Thu, 20 Jul 2000 15:53:38 +1000 (EST)


> 
> FYI,
> 
> Recent versions of Ghostscript output version info with --help WITHOUT
> the "Version"
> 
> 
> Here is a suggested fix:
> 
> --- config.pl.dist      Wed Jul 12 00:15:01 2000
> +++ config.pl   Wed Jul 12 16:52:16 2000
> @@ -983,6 +983,9 @@
>          if(/Ghostscript\s*(?:Version|BETA RELEASE|TESTER
> RELEASE)\s*(\d+[.]?\d*)/i) {
>            $gs_version = $1;
>          }
> +        elsif(/Ghostscript\s*(\d+[.]?\d*)/i) {
> +          $gs_version = $1;
> +       }
>          elsif(/^\s*Available devices/i) {
>            $flag = 1; # Now look for the devices
>          }

Thanks John,

But that isn't the full fix.
Surely it is sufficient to match the string as follows:

 if(/Ghostscript\s*(?:Version|BETA RELEASE|TESTER RELEASE|)\s*(\d+[.]?\d*)/i) {
#               match the empty string this way ---------^^ 
        $gs_version = $2;
#                      ^------ version number is in $2,  not $1
    }
    elsif(/^\s*Available devices/i) {
        $flag = 1; # Now look for the devices
    }


Hope this helps,

	Ross Moore

 
> BTW, I am not on this list.
> 
> John
> -- 
> John Bly Milton IV   (512) w:493-2764, h:873-8567, m:791-8567
> FundsXpress  jmilton@fundsxpress.com  Don't FLAME, inform!  O-