$NetBSD: patch-lookups_Makefile,v 1.1 2013/09/02 16:04:13 jperkin Exp $ Avoid use of non-portable "local" keyword. --- scripts/lookups-Makefile.orig 2012-10-25 03:37:38.000000000 +0000 +++ scripts/lookups-Makefile @@ -62,16 +62,16 @@ tmp="$target.t" # command-line, not just check the Makefile. want_dynamic() { - local dyn_name="$1" - local re="LOOKUP_${dyn_name}[ $tab]*=[ $tab]*2" + dyn_name="$1" + re="LOOKUP_${dyn_name}[ $tab]*=[ $tab]*2" env | grep -q "^$re" if [ $? -eq 0 ]; then return 0; fi grep -q "^[ $tab]*$re" "$defs_source" } want_at_all() { - local want_name="$1" - local re="LOOKUP_${want_name}[ $tab]*=[ $tab]*." + want_name="$1" + re="LOOKUP_${want_name}[ $tab]*=[ $tab]*." env | grep -q "^$re" if [ $? -eq 0 ]; then return 0; fi grep -q "^[ $tab]*$re" "$defs_source" @@ -83,8 +83,7 @@ MODS="" OBJ="" emit_module_rule() { - local lookup_name="$1" - local mod_name pkgconf + lookup_name="$1" if [ "${lookup_name%:*}" = "$lookup_name" ] then mod_name=$(echo $lookup_name | tr A-Z a-z)