added LICENSE files
[bills-tools.git] / calc / calcrc
blob2a6cea6ef169576e7ffb2c4d5964dce555b528b5
1 #!/usr/bin/env rc
3 # calc, (c) Oct, 2010, by Bill Burdick
4 # licensed with the ZLIB license (see the LICENSE file)
6 while (line=`{read}) {
7         CALC_VARS=($CALC_VARS `{echo $line|sed -e 's/^([^=]*)=.*/\1/'})
8         eval $line
9         eval 'CALC_OLD_'$line
11 . $1
12 for (v in $CALC_VARS) {
13         if (test $$v '!=' $(CALC_OLD_$v)) echo $v '=' $$v