summaryrefslogtreecommitdiff
path: root/configpm
diff options
context:
space:
mode:
authorYitzchak Scott-Thoennes <sthoenna@efn.org>2002-02-19 03:55:36 -0800
committerJarkko Hietaniemi <jhi@iki.fi>2002-02-20 14:56:55 +0000
commitaade5aff4d4ca48f8b8ad56cbcbd37531afa2401 (patch)
treee3741f6dc75f91375c767070b1e2b0d0324c771c /configpm
parenteade9b7139927966a87970564990ef3670609a0a (diff)
downloadperl-aade5aff4d4ca48f8b8ad56cbcbd37531afa2401.tar.gz
d_Gconvert hints and Glossary
Message-ID: <42qc8gzkgOFN092yn@efn.org> p4raw-id: //depot/perl@14786
Diffstat (limited to 'configpm')
-rwxr-xr-xconfigpm17
1 files changed, 11 insertions, 6 deletions
diff --git a/configpm b/configpm
index 9f1a2e11cd..d8339fa22b 100755
--- a/configpm
+++ b/configpm
@@ -420,20 +420,25 @@ $text = 0;
$/ = '';
sub process {
- s/\A(\w*)\s+\(([\w.]+)\):\s*\n(\t?)/=item C<$1>\n\nFrom F<$2>:\n\n/m;
- my $c = substr $1, 0, 1;
- unless ($seen{$c}++) {
- print CONFIG <<EOF if $text;
+ if (s/\A(\w*)\s+\(([\w.]+)\):\s*\n(\t?)/=item C<$1>\n\nFrom F<$2>:\n\n/m) {
+ my $c = substr $1, 0, 1;
+ unless ($seen{$c}++) {
+ print CONFIG <<EOF if $text;
=back
EOF
- print CONFIG <<EOF;
+ print CONFIG <<EOF;
=head2 $c
=over 4
EOF
- $text = 1;
+ $text = 1;
+ }
+ }
+ elsif (!$text || !/\A\t/) {
+ warn "Expected a Configure variable header",
+ ($text ? " or another paragraph of description" : () );
}
s/n't/n\00t/g; # leave can't, won't etc untouched
s/^\t\s+(.*)/\n\t$1\n/gm; # Indented lines ===> paragraphs