pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/configure Documented a not-so-easily-fixed bug that...
details: https://anonhg.NetBSD.org/pkgsrc/rev/58e41d2e565b
branches: trunk
changeset: 520420:58e41d2e565b
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Oct 21 10:37:48 2006 +0000
description:
Documented a not-so-easily-fixed bug that occurs when stripping comments
off a line.
diffstat:
mk/configure/check-portability.sh | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (18 lines):
diff -r d585f8bc9422 -r 58e41d2e565b mk/configure/check-portability.sh
--- a/mk/configure/check-portability.sh Sat Oct 21 10:01:23 2006 +0000
+++ b/mk/configure/check-portability.sh Sat Oct 21 10:37:48 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.sh,v 1.2 2006/10/12 20:36:34 rillig Exp $
+# $NetBSD: check-portability.sh,v 1.3 2006/10/21 10:37:48 rillig Exp $
#
# This program checks the extracted files for portability issues that
# are likely to result in false assumptions by the package.
@@ -50,6 +50,8 @@
# a safe usage of $RANDOM, it will pass the test.
# Strip comments.
+ # Note: this has the side-effect that the # in $# is also
+ # regarded as a comment.
line="${line%%#*}"
# Check for $RANDOM, which is specific to ksh and bash.
Home |
Main Index |
Thread Index |
Old Index