pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/check Revert rev. 1.5 and 1.6



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1ce8e150f69
branches:  trunk
changeset: 631637:c1ce8e150f69
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Tue Mar 11 23:23:01 2014 +0000

description:
Revert rev. 1.5 and 1.6
The change introduced in rev. 1.5 disables portability check.

diffstat:

 mk/check/check-portability.awk |  13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diffs (34 lines):

diff -r ed19b62f778b -r c1ce8e150f69 mk/check/check-portability.awk
--- a/mk/check/check-portability.awk    Tue Mar 11 22:11:45 2014 +0000
+++ b/mk/check/check-portability.awk    Tue Mar 11 23:23:01 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: check-portability.awk,v 1.6 2014/03/11 21:32:11 ryoon Exp $
+# $NetBSD: check-portability.awk,v 1.7 2014/03/11 23:23:01 ryoon Exp $
 #
 # Checks a shell file for possible portability problems.
 #
@@ -11,15 +11,6 @@
        found_test_eqeq = no;
 }
 
-# length(array) of lang/nawk does not work as expected.
-function pkgsrc_length(arg, len) {
-       len = 0;
-       for (i in arg) {
-               len++
-       }
-       return len;
-}
-
 # Check for $RANDOM, which is specific to ksh and bash.
 function check_random(line) {
 
@@ -40,7 +31,7 @@
 
 function check_test_eqeq(line,  n, word, i) {
 
-       if (length(line) == 0 || pkgsrc_length(word) == 0)
+       if (length(line) ==0 || length(word) == 0)
                return;
        n = split(line, word);
        for (i = 3; i < n; i++) {



Home | Main Index | Thread Index | Old Index