3 # calc, (c) Oct, 2010, by Bill Burdick
4 # licensed with the ZLIB license (see the LICENSE file)
15 while (line=`{read}) {
16 var=`{echo $line|sed -e 's/^([^=]*)=.*$/\1/'}
17 value=`{echo $line|sed -e 's/^[^=]*=(.*)$/\1/'}
19 if (! ~ $oldVals '') {
23 oldVals=$"oldVals'"'$var'" : '$"value
24 newVals=$"newVals'"'$var'" : '$var
32 echo (' '$1^' := float64('$2')') >> $script
41 oldVars := map[string]float64{$oldVals}
42 for k, v := range map[string]float64{$newVals} {
50 $compile -o $base^.8 $script > $errs && $link -o $base $base^.8 >> $errs && $base