summaryrefslogtreecommitdiff
path: root/regen/feature.pl
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-05-20 23:01:58 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-05-21 16:51:46 -0700
commit52fc5c56ccd9c6bab20246b4f80f558b71ad5d42 (patch)
tree0ec123971e024c45b707835bbdffc4593b14517d /regen/feature.pl
parentf226e9be7c69188b9b91606ccfca77843eaf9a31 (diff)
downloadperl-52fc5c56ccd9c6bab20246b4f80f558b71ad5d42.tar.gz
feature.pl: Make 5.even bundle imply 5.odd
Since the 5.18 feature bundle should be added long before 5.18, to avoid last-minute blunders, and since it’s easy to forget to do it in advance, have feature.pl do it automatically.
Diffstat (limited to 'regen/feature.pl')
-rwxr-xr-xregen/feature.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/regen/feature.pl b/regen/feature.pl
index 1c91fa285e..15315c7932 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -37,19 +37,16 @@ my %feature = (
# versions, any code below that uses %BundleRanges will have to
# be changed to account.
+# 5.odd implies the next 5.even, but an explicit 5.even can override it.
my %feature_bundle = (
all => [ keys %feature ],
default => [qw(array_base)],
"5.9.5" => [qw(say state switch array_base)],
"5.10" => [qw(say state switch array_base)],
"5.11" => [qw(say state switch unicode_strings array_base)],
- "5.12" => [qw(say state switch unicode_strings array_base)],
"5.13" => [qw(say state switch unicode_strings array_base)],
- "5.14" => [qw(say state switch unicode_strings array_base)],
"5.15" => [qw(say state switch unicode_strings unicode_eval
evalbytes current_sub fc)],
- "5.16" => [qw(say state switch unicode_strings unicode_eval
- evalbytes current_sub fc)],
"5.17" => [qw(say state switch unicode_strings unicode_eval
evalbytes current_sub fc)],
);
@@ -58,6 +55,11 @@ my %feature_bundle = (
###########################################################################
# More data generated from the above
+for (keys %feature_bundle) {
+ next unless /^5\.(\d*[13579])\z/;
+ $feature_bundle{"5.".($1+1)} ||= $feature_bundle{$_};
+}
+
my %UniqueBundles; # "say state switch" => 5.10
my %Aliases; # 5.12 => 5.11
for( sort keys %feature_bundle ) {