This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Plan 9: No Configure.
[perl5.git] / regen_headers.pl
CommitLineData
36bb303b
NC
1#!/usr/bin/perl -w
2require 5.003; # keep this compatible, an old perl is all we may have before
3 # we build the new one
4
5# The idea is to move the regen_headers target out of the Makefile so that
6# it is possible to rebuild the headers before the Makefile is available.
7# (and the Makefile is unavailable until after Configure is run, and we may
8# wish to make a clean source tree but with current headers without running
9# anything else.
10
11use strict;
12my $perl = $^X;
13
14require 'regen.pl';
15# keep warnings.pl in sync with the CPAN distribution by not requiring core
16# changes
17safer_unlink ("warnings.h", "lib/warnings.pm");
18
19foreach (qw (keywords.pl opcode.pl embed.pl bytecode.pl regcomp.pl
20 warnings.pl autodoc.pl)) {
21 print "$^X $_\n";
22 system "$^X $_";
23}