sync regen/warnings.pl and warnings.pm $VERSION

Programming / Compilers / PERL - Tony Cook [develop-help.com] - 11 October 2015 22:55 UTC

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.

###

diff --git a/lib/warnings.pm b/lib/warnings.pm
index 1084723..ba466a8 100644
--- a/lib/warnings.pm
+++ b/lib/warnings.pm
@@ -5,7 +5,7 @@

package warnings;

-our $VERSION = '1.34';
+our $VERSION = "1.35";

# Verify that we're called correctly so that warnings will work.
# see also strict.pm.
diff --git a/regen/warnings.pl b/regen/warnings.pl
index 25faf1f..6a07493 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';
@@ -414,6 +414,13 @@ EOM
}

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.

3d8ff82 sync regen/warnings.pl and warnings.pm $VERSION
lib/warnings.pm | 2 +-
regen/warnings.pl | 11 +++++++++--
2 files changed, 10 insertions(+), 3 deletions(-)

Upstream: perl5.git.perl.org


  • Share