diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-03-11 23:23:01 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-03-11 23:23:01 +0000 |
commit | 36479159bb8932d355d19300cf32f0bfb8bc6ff8 (patch) | |
tree | c3a1d36dd1244608c1db9edd96267daf8fe976e9 /mk/check | |
parent | affc43c3d432224f485a77fff712db8d20ee41ff (diff) | |
download | pkgsrc-36479159bb8932d355d19300cf32f0bfb8bc6ff8.tar.gz |
Revert rev. 1.5 and 1.6
The change introduced in rev. 1.5 disables portability check.
Diffstat (limited to 'mk/check')
-rw-r--r-- | mk/check/check-portability.awk | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/mk/check/check-portability.awk b/mk/check/check-portability.awk index 04edbd9be43..8ecbd5014d8 100644 --- a/mk/check/check-portability.awk +++ b/mk/check/check-portability.awk @@ -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 @@ BEGIN { 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_random(line) { 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++) { |