From 6f091d1cf2ed569b6acca5c1d15b460579378269 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Sat, 30 Sep 2017 11:02:18 -0700 Subject: [PATCH] The version is now treated as a string not as a number Before this a version 1.40 was seen as 1.4 --- Makefile.PL | 4 ++-- bin/feedgnuplot | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index a02c839..6863f49 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -20,9 +20,9 @@ sub parseversion while() { - if( /VERSION = ([0-9\.]+)/ ) + if( /VERSION = '([0-9\.]+)'/ ) { - if ( $1 != $version ) + if ( $1 ne $version ) { die "Version mismatch. Changes says version is '$version', but 'bin/feedgnuplot' says it is '$1'"; } diff --git a/bin/feedgnuplot b/bin/feedgnuplot index 7eda297..3cb66cb 100755 --- a/bin/feedgnuplot +++ b/bin/feedgnuplot @@ -15,7 +15,8 @@ use Text::ParseWords; # for shellwords use Pod::Usage; use Time::Piece; -my $VERSION = 1.44; +# Makefile.PL assumes this is in '' +my $VERSION = '1.44'; my %options; interpretCommandline();