2 # Copyright (C) 2009, Parrot Foundation.
8 my $pmc_num_file = $ARGV[0];
13 open my $pmc_num_fh, '<', $pmc_num_file;
16 if (/^([\w]+)\.pmc\s+\d+$/) {
17 $pmc_num_contents .= "$1.pmc $pmc_order\n";
21 $pmc_num_contents .= $_;
26 open $pmc_num_fh, '>', $pmc_num_file;
27 print $pmc_num_fh $pmc_num_contents;
31 ################### DOCUMENTATION ####################
35 tools/dev/pmcrenumber.pl - Renumber F<src/pmc/pmc.num>.
39 $ perl tools/dev/pmcrenumber.pl pmc.num
43 This program should be used when adding PMCs. Note that it does not remove
44 numbers assigned to PMCs that have been removed; this happens very rarely.
50 =item F<lib/Parrot/OpsRenumber.pm>.
62 # cperl-indent-level: 4
65 # vim: expandtab shiftwidth=4: