summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2005-05-19 21:11:24 +0000
committerdmcmahill <dmcmahill>2005-05-19 21:11:24 +0000
commit1c99c47e9975a04cc4d0f9b1439c09cd3a5b9f8c (patch)
tree303469a035db3d198cf759823cc991d6c7a078ba /mk
parent1c8a62b1306dfb0217ecc9cca9ea3d2a175a3b38 (diff)
downloadpkgsrc-1c99c47e9975a04cc4d0f9b1439c09cd3a5b9f8c.tar.gz
make local variables in a few functions be local
Diffstat (limited to 'mk')
-rwxr-xr-xmk/scripts/genreadme.awk11
1 files changed, 7 insertions, 4 deletions
diff --git a/mk/scripts/genreadme.awk b/mk/scripts/genreadme.awk
index fa2c3e0c793..24390653124 100755
--- a/mk/scripts/genreadme.awk
+++ b/mk/scripts/genreadme.awk
@@ -1,5 +1,5 @@
#!/usr/bin/awk -f
-# $NetBSD: genreadme.awk,v 1.15 2005/05/19 11:46:40 dmcmahill Exp $
+# $NetBSD: genreadme.awk,v 1.16 2005/05/19 21:11:24 dmcmahill Exp $
#
# Copyright (c) 2002, 2003, 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -796,7 +796,7 @@ function copy_readme(old, new, cmd, rc) {
}
-function load_cache_file( file ) {
+function load_cache_file( file, pkgfile, opsys, osver, march ) {
fatal_check_file( file );
if( debug ) printf("load_cache_file(%s)\n", file);
@@ -830,7 +830,9 @@ function load_cache_file( file ) {
opsys_list[pkgfile] = opsys;
osver_list[pkgfile] = osver;
march_list[pkgfile] = march;
- pkg_list[pkgfile] = pkgfile;
+
+ # we only use this for a list of keys later so store something short...
+ pkg_list[pkgfile] = 1;
pkgnm_list[pkgfile] = pkgfile;
gsub(/.*\//, "", pkgnm_list[pkgfile]);
} else {
@@ -842,7 +844,7 @@ function load_cache_file( file ) {
close( file );
}
-function lookup_cache( wc, r, binpkgs) {
+function lookup_cache( wc, r, binpkgs, key) {
if( debug ) printf("lookup_cache( %s )\n", wc);
r = ".*/" glob2reg( wc );
if( debug ) printf("lookup_cache(): Searching for \"%s\"\n", r );
@@ -858,3 +860,4 @@ function lookup_cache( wc, r, binpkgs) {
}
return( binpkgs );
}
+