diff options
author | joe <joe@FreeBSD.org> | 2001-12-04 05:07:30 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-12-04 05:07:30 +0800 |
commit | 4d71e8453512f5318e45102c324d1800d5833ec7 (patch) | |
tree | 1a56dbb842540a9d67fdee27c5f6e447ecc157d4 /CVSROOT | |
parent | b43d206fd2f41f2dd6df312f0a102f5b58391b25 (diff) | |
download | freebsd-ports-gnome-4d71e8453512f5318e45102c324d1800d5833ec7.tar.gz freebsd-ports-gnome-4d71e8453512f5318e45102c324d1800d5833ec7.tar.zst freebsd-ports-gnome-4d71e8453512f5318e45102c324d1800d5833ec7.zip |
Only complain about DOS carriage returns if the test is switched on.
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/commit_prep.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CVSROOT/commit_prep.pl b/CVSROOT/commit_prep.pl index 545f2357f665..fdd3b2ca41d7 100755 --- a/CVSROOT/commit_prep.pl +++ b/CVSROOT/commit_prep.pl @@ -146,7 +146,7 @@ sub check_version { if ( /^.*(\$$HEADER.*)/ ) { $rcsid = $1; $found_rcsid = 1; - } elsif ( m/\r/ ) { + } elsif ( $cfg::NO_DOS_LINEBREAKS and /\r/ ) { # Found a DOS linebreak printf($DOSLineBreak, "$directory/$filename", $line_number); @@ -156,7 +156,7 @@ sub check_version { close FILE; # The file must NOT contain DOS linebreaks - if ($cfg::NO_DOS_LINEBREAKS and $dos_line_brk_found) { + if ($dos_line_brk_found) { print $DOSLineErr; return(1); } |