projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7bbb8c5
)
Allow variables to be overridden on the command line.
author
Ben Laurie
<ben@links.org>
Mon, 4 Mar 2013 14:08:23 +0000
(14:08 +0000)
committer
Ben Laurie
<ben@links.org>
Mon, 4 Mar 2013 14:31:18 +0000
(14:31 +0000)
util/files.pl
patch
|
blob
|
history
diff --git
a/util/files.pl
b/util/files.pl
index 41f033e3b9aa409dba89c65bc9481e6be5d0a8ae..b15407f0c90562bff4b11ad40cb8d610178e0c99 100755
(executable)
--- 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}
;
}
}