This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlxs.pod; rpc is considered obsolete
[perl5.git] / regen.pl
CommitLineData
36bb303b 1#!/usr/bin/perl -w
f014cfc2 2#
2effe01f 3# regen.pl - a wrapper that runs all *.pl scripts to autogenerate files
f014cfc2 4
916e4025 5require 5.004; # keep this compatible, an old perl is all we may have before
9ad884cb 6 # we build the new one
36bb303b 7
9ad884cb
JH
8# The idea is to move the regen_headers target out of the Makefile so that
9# it is possible to rebuild the headers before the Makefile is available.
10# (and the Makefile is unavailable until after Configure is run, and we may
11# wish to make a clean source tree but with current headers without running
12# anything else.
36bb303b 13
9ad884cb 14use strict;
36bb303b 15
0daf6d09
NC
16my $tap = $ARGV[0] && $ARGV[0] eq '--tap' ? '# ' : '';
17foreach my $pl (map {chomp; "regen/$_"} <DATA>) {
9824c081 18 my @command = ($^X, '-I.', $pl, @ARGV);
0daf6d09
NC
19 print "$tap@command\n";
20 system @command
21 and die "@command failed: $?"
22}
f014cfc2 23
0daf6d09 24__END__
8b09643d 25mg_vtable.pl
07d48c2a
DM
26opcode.pl
27overload.pl
28reentr.pl
29regcomp.pl
30warnings.pl
f014cfc2 31embed.pl
69bcf1d3 32feature.pl