added LICENSE files
[bills-tools.git] / calc / calcrc
Commit [+]AuthorDateLineData
a99794b5 Bill Burdick2010-10-22 13:30:30 +02001#!/usr/bin/env rc
2732974c
BB
Bill Burdick2010-10-22 13:35:42 +02002
3# calc, (c) Oct, 2010, by Bill Burdick
4# licensed with the ZLIB license (see the LICENSE file)
5
a99794b5
BB
Bill Burdick2010-10-22 13:30:30 +02006while (line=`{read}) {
7 CALC_VARS=($CALC_VARS `{echo $line|sed -e 's/^([^=]*)=.*/\1/'})
8 eval $line
9 eval 'CALC_OLD_'$line
10}
11. $1
12for (v in $CALC_VARS) {
13 if (test $$v '!=' $(CALC_OLD_$v)) echo $v '=' $$v
14}