summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorryoon <ryoon>2014-03-11 23:23:01 +0000
committerryoon <ryoon>2014-03-11 23:23:01 +0000
commit710f4dd138e35939e54754ab51162e1c69190c86 (patch)
treec3a1d36dd1244608c1db9edd96267daf8fe976e9 /mk
parentcc675025e2fe45eb94b76722afcec37cd25abb2f (diff)
downloadpkgsrc-710f4dd138e35939e54754ab51162e1c69190c86.tar.gz
Revert rev. 1.5 and 1.6
The change introduced in rev. 1.5 disables portability check.
Diffstat (limited to 'mk')
-rw-r--r--mk/check/check-portability.awk13
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++) {