summaryrefslogtreecommitdiff
path: root/mk/scripts
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2005-05-19 21:11:24 +0000
committerdmcmahill <dmcmahill>2005-05-19 21:11:24 +0000
commitc2c72c554f0ed3bbba72ce2d6c57b9f417f92a4e (patch)
tree303469a035db3d198cf759823cc991d6c7a078ba /mk/scripts
parent52f32864c0bf3ff5060ab450e95b057fb001717d (diff)
downloadpkgsrc-c2c72c554f0ed3bbba72ce2d6c57b9f417f92a4e.tar.gz
make local variables in a few functions be local
Diffstat (limited to 'mk/scripts')
-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 );
}
+