aboutsummaryrefslogtreecommitdiffstats
path: root/CVSROOT
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-12-04 05:07:30 +0800
committerjoe <joe@FreeBSD.org>2001-12-04 05:07:30 +0800
commit4d71e8453512f5318e45102c324d1800d5833ec7 (patch)
tree1a56dbb842540a9d67fdee27c5f6e447ecc157d4 /CVSROOT
parentb43d206fd2f41f2dd6df312f0a102f5b58391b25 (diff)
downloadfreebsd-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-xCVSROOT/commit_prep.pl4
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);
}