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
30 if (grep '//BODY' $file > /dev/null) {
31 awk '/\/\/BODY/{exit}skipped{print}!skipped{skipped=1}' < $file >> $script
37 echo (' '$1^' := float64('$2')') >> $script
40 if (grep '//BODY' $file > /dev/null) {
41 awk 'yes{print}/\/\/BODY/{yes=1}' < $file >> $script
51 oldVars := map[string]float64{$oldVals}
52 for k, v := range map[string]float64{$newVals} {
60 $compile -o $base^.8 $script > $errs && $link -o $base $base^.8 >> $errs && $base