aboutsummaryrefslogtreecommitdiffstats
path: root/check_trans.pl
diff options
context:
space:
mode:
authorBas Zoetekouw <bas>2008-10-01 17:11:38 +0000
committerBas Zoetekouw <bas>2008-10-01 17:11:38 +0000
commit7655abde0c8a62653efbe72b4f13b0bc01bb4cb9 (patch)
tree499fc7c22a68880209edba506eb2038a1446415c /check_trans.pl
parent792e3c2d749fb995e841e72fa5290165075962cd (diff)
Minor changes to help text and display function
CVS version numbers check_trans.pl: 1.77 -> 1.78
Diffstat (limited to 'check_trans.pl')
-rwxr-xr-xcheck_trans.pl13
1 files changed, 7 insertions, 6 deletions
diff --git a/check_trans.pl b/check_trans.pl
index 8c1b409bc13..b896b277262 100755
--- a/check_trans.pl
+++ b/check_trans.pl
@@ -59,7 +59,7 @@
# -n <1|2|3> send mails of priority upper or equal to
# 1 (monthly), 2 (weekly) or 3 (daily)
#
-# generating emails
+# GENERATING EMAILS
# If you want to, this script send mails to the maintainer of the mails.
# BEWARE, SOME PEOPLE DO NOT LIKE TO RECEIVE AUTOMATIC MAILS!
#
@@ -737,14 +737,15 @@ sub show_help
# read the help from the comments above and display it
open( my $me, '<', $0 ) or die "Unable to display help: $!\n";
- while (<$me>)
+ while ( my $line = <$me> )
{
- last if m{^use};
- next unless m{^# };
+ last if $line =~ m{^use};
+ print "\n" if $line =~ m{^#$};
+ next unless $line =~ m{^# };
- s{^# ?}{};
+ $line =~ s{^# ?}{};
- print;
+ print $line;
}
close( $me );

© 2014-2024 Faster IT GmbH | imprint | privacy policy