diff options
author | David Mitchell <davem@iabyn.com> | 2017-06-05 12:32:12 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-06-05 12:44:12 +0100 |
commit | 8ecf5aeb0235fbd7428a9aa07025bd0631054e13 (patch) | |
tree | 90fca8581bd1ab8a156ef4d9d428641b53abc856 /Porting/cmpVERSION.pl | |
parent | df84fb9fdd69c2618eb0e445e6724c07d4947fa5 (diff) | |
download | perl-8ecf5aeb0235fbd7428a9aa07025bd0631054e13.tar.gz |
make porting/cmp_version.t clearer what happens
Add some code comments, and include the version number its comparing
against in the output.
Diffstat (limited to 'Porting/cmpVERSION.pl')
-rwxr-xr-x | Porting/cmpVERSION.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Porting/cmpVERSION.pl b/Porting/cmpVERSION.pl index 01f77c8e82..67e9b395ca 100755 --- a/Porting/cmpVERSION.pl +++ b/Porting/cmpVERSION.pl @@ -169,6 +169,7 @@ unless (%module_diffs) { } printf "1..%d\n" => scalar keys %module_diffs if $tap; +print "#\n# Comparing against $tag_to_compare ....\n#\n" if $tap; my $count; my $diff_cmd = "git --no-pager diff $tag_to_compare "; @@ -194,9 +195,14 @@ foreach my $pm_file (sort keys %module_diffs) { print "ok $count - $pm_file\n" if $tap; } else { if ($tap) { + print "#\n# " . '-' x 75 . "\n" + . "# Version number ($pm_version) unchanged since" + . " $tag_to_compare, but contents have changed:\n#\n"; foreach (sort @{$module_diffs{$pm_file}}) { print "# $_" for `$diff_cmd $q$_$q`; } + print "# " . '-' x 75 . "\n"; + if (exists $skip_versions{$pm_file} and grep $pm_version eq $_, @{$skip_versions{$pm_file}}) { print "ok $count - SKIP $pm_file version $pm_version\n"; |