Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Fix two incorrect attempts to skip blank lines or comment li...
details: https://anonhg.NetBSD.org/src/rev/4603b770867f
branches: trunk
changeset: 330373:4603b770867f
user: apb <apb%NetBSD.org@localhost>
date: Sun Jul 06 17:35:09 2014 +0000
description:
Fix two incorrect attempts to skip blank lines or comment lines.
They failed to account for the space that is appended to ${line}
before comparison.
diffstat:
build.sh | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r ee1a90fa4fad -r 4603b770867f build.sh
--- a/build.sh Sun Jul 06 16:18:46 2014 +0000
+++ b/build.sh Sun Jul 06 17:35:09 2014 +0000
@@ -1,5 +1,5 @@
#! /usr/bin/env sh
-# $NetBSD: build.sh,v 1.282 2014/06/14 12:25:00 apb Exp $
+# $NetBSD: build.sh,v 1.283 2014/07/06 17:35:09 apb Exp $
#
# Copyright (c) 2001-2011 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -695,7 +695,7 @@
line="${line%%#*}" # ignore comments
line="$( IFS=" ${tab}" ; echo $line )" # normalise white space
case "${line} " in
- "")
+ " ")
# skip blank lines or comment lines
continue
;;
@@ -770,7 +770,7 @@
line="${line%%#*}" # ignore comments
line="$( IFS=" ${tab}" ; echo $line )" # normalise white space
case "${line} " in
- "")
+ " ")
# skip blank lines or comment lines
continue
;;
@@ -1748,7 +1748,7 @@
eval cat <<EOF ${makewrapout}
#! ${HOST_SH}
# Set proper variables to allow easy "make" building of a NetBSD subtree.
-# Generated from: \$NetBSD: build.sh,v 1.282 2014/06/14 12:25:00 apb Exp $
+# Generated from: \$NetBSD: build.sh,v 1.283 2014/07/06 17:35:09 apb Exp $
# with these arguments: ${_args}
#
Home |
Main Index |
Thread Index |
Old Index