Subject: | gnuplot version check in StatsView-1.4's Makefile.PL should be case insensitive |
The check of gnuplot version looks for the string /version\s*([\d.]*)/
but gnuplot v3.7pl3 now capitalizes the word "Version":
Show quoted text
gnuplot> show version
G N U P L O T
Version 3.7 patchlevel 3
This causes the error:
WARNING: Incorrect version of GNUPlot found
StatsView requires GNUPlot 3.7 or above.
A copy can be found in the gnuplot_src subdirectory
Making the two match operators case insensitive fixes the issue:
$ diff Makefile.PL~ Makefile.PL
20,21c20,21
< my ($ver) = $hdr =~ /version\s*([\d.]*)/;
< my ($plev) = $hdr =~ /patchlevel\s*(.*)/;
---
Show quoted text> my ($ver) = $hdr =~ /version\s*([\d.]*)/i;
> my ($plev) = $hdr =~ /patchlevel\s*(.*)/i;