[docs][TT# 1667] Get rid of wrong documentation
[parrot.git] / tools / dev / pmcrenumber.pl
blob978d6026228ab79573fa4b0b394ec68023f973b4
1 #! perl
2 # Copyright (C) 2009, Parrot Foundation.
3 # $Id$
5 use strict;
6 use warnings;
8 my $pmc_num_file = $ARGV[0];
10 my $pmc_order = 0;
11 my $pmc_num_contents;
13 open my $pmc_num_fh, '<', $pmc_num_file;
15 for (<$pmc_num_fh>) {
16 if (/^([\w]+)\.pmc\s+\d+$/) {
17 $pmc_num_contents .= "$1.pmc $pmc_order\n";
18 $pmc_order++;
20 else {
21 $pmc_num_contents .= $_;
25 close $pmc_num_fh;
26 open $pmc_num_fh, '>', $pmc_num_file;
27 print $pmc_num_fh $pmc_num_contents;
28 close $pmc_num_fh;
31 ################### DOCUMENTATION ####################
33 =head1 NAME
35 tools/dev/pmcrenumber.pl - Renumber F<src/pmc/pmc.num>.
37 =head1 SYNOPSIS
39 $ perl tools/dev/pmcrenumber.pl pmc.num
41 =head1 DESCRIPTION
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.
46 =head1 SEE ALSO
48 =over 4
50 =item F<lib/Parrot/OpsRenumber.pm>.
52 =back
54 =head1 AUTHOR
56 Christoph Otto
58 =cut
60 # Local Variables:
61 # mode: cperl
62 # cperl-indent-level: 4
63 # fill-column: 100
64 # End:
65 # vim: expandtab shiftwidth=4: