Module Name: src
Committed By: apb
Date: Sun Jul 6 17:35:09 UTC 2014
Modified Files:
src: build.sh
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.282 -r1.283 src/build.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/build.sh
diff -u src/build.sh:1.282 src/build.sh:1.283
--- src/build.sh:1.282 Sat Jun 14 12:25:00 2014
+++ src/build.sh Sun Jul 6 17:35:09 2014
@@ -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 @@ getarch()
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 @@ validatearch()
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 @@ createmakewrapper()
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}
#