summaryrefslogtreecommitdiff
path: root/util/files.pl
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2015-10-23 19:46:02 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2015-10-23 19:46:02 +0000
commite9fcefce9bb70f20c272a996443928c5f6ab8cd8 (patch)
treeae816a5a768ec78af3610e509ca39507b33aa9f7 /util/files.pl
parentc07d7b3a386974c338492659291008bed07948e6 (diff)
Notes
Diffstat (limited to 'util/files.pl')
-rwxr-xr-xutil/files.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/files.pl b/util/files.pl
index 41f033e3b9aa4..b15407f0c9056 100755
--- a/util/files.pl
+++ b/util/files.pl
@@ -4,6 +4,12 @@
# It is basically a list of all variables from the passed makefile
#
+while ($ARGV[0] =~ /^(\S+)\s*=(.*)$/)
+ {
+ $sym{$1} = $2;
+ shift;
+ }
+
$s="";
while (<>)
{
@@ -33,7 +39,7 @@ while (<>)
$o =~ s/\s+/ /g;
$o =~ s/\$[({]([^)}]+)[)}]/$sym{$1}/g;
- $sym{$s}=$o;
+ $sym{$s}=$o if !exists $sym{$s};
}
}