From 3d8ff82557d67bc81d10600b537a57f90f401a4f Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Mon, 14 Sep 2015 14:31:43 +1000 Subject: sync regen/warnings.pl and warnings.pm $VERSION regen/warnings.pl's $VERSION was at 1.04 despite it being modified each time warnings.pm is modified. So make them use the same version number. --- regen/warnings.pl | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'regen/warnings.pl') diff --git a/regen/warnings.pl b/regen/warnings.pl index 25faf1f110..6a07493624 100644 --- a/regen/warnings.pl +++ b/regen/warnings.pl @@ -16,7 +16,7 @@ # # This script is normally invoked from regen.pl. -$VERSION = '1.03'; +$VERSION = '1.35'; BEGIN { require 'regen/regen_lib.pl'; @@ -413,6 +413,13 @@ EOM read_only_bottom_close_and_rename($warn); } +while () { + last if /^VERSION$/ ; + print $pm $_ ; +} + +print $pm qq(our \$VERSION = "$::VERSION";\n); + while () { last if /^KEYWORDS$/ ; print $pm $_ ; @@ -479,7 +486,7 @@ read_only_bottom_close_and_rename($pm); __END__ package warnings; -our $VERSION = '1.34'; +VERSION # Verify that we're called correctly so that warnings will work. # see also strict.pm. -- cgit v1.2.1