gen_settings.pl: Evaluate expressions

If the script finds a '[[ ]]' expression in the input file,
it will evaluate that expression and write out the result
in place of it.  It will resolve both the MRW attributes and
any variables passed in from the command line first.

For example, if the attribute FOO has a value of 50 in the MRW,
and the program was started with: -v "MY_VAR1=200 MY_VAR2=400"

then the line
  [[(MRW_FOO * MY_VAR1) + 5]]..[[MRW_FOO * MY_VAR2]]

would get written out as:
  10005..20000

Change-Id: Ia7aa9ab61f99b5d9620d77fa1329bd6d7b0221bc
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
1 file changed