From 2732974ccf4c5f57713d091bf5a0bf5529e5ae71 Mon Sep 17 00:00:00 2001 From: Bill Burdick Date: Fri, 22 Oct 2010 13:35:42 +0200 Subject: [PATCH] added license --- calc/README | 3 +++ calc/calc | 3 +++ calc/calcgo | 4 ++++ calc/calcrc | 4 ++++ 4 files changed, 14 insertions(+) diff --git a/calc/README b/calc/README index 0c472f7..c5ef619 100644 --- a/calc/README +++ b/calc/README @@ -1,3 +1,6 @@ +calc, (c) Oct, 2010, by Bill Burdick +licensed with the ZLIB license (see the LICENSE file) + Calc parses the text in a window and finds variables of the form /[a-zA-Z0-9_]+ *= *[0-9e.+\-]*/ It sends the values to standard input of the script at the bottom of the window (which starts with /^#!/), one variable per line, = (variables without values are given as 0). The script is expected to output changed variables, one per line, in the same format. Calc parses those values and replaces them in the Acme window. Installation: put calcrc, calcgo and calc in your path. diff --git a/calc/calc b/calc/calc index a112ba7..5738944 100755 --- a/calc/calc +++ b/calc/calc @@ -1,5 +1,8 @@ #!/usr/bin/env rc +# calc, (c) Oct, 2010, by Bill Burdick +# licensed with the ZLIB license (see the LICENSE file) + # assign var value -- find var in window and replace its old value with the new one # variables are words made of letters, numbers, and/or _, followed by '=' and, optionally, a number fn assign { diff --git a/calc/calcgo b/calc/calcgo index ec0938c..cd6335b 100755 --- a/calc/calcgo +++ b/calc/calcgo @@ -1,4 +1,8 @@ #!/usr/bin/env rc + +# calc, (c) Oct, 2010, by Bill Burdick +# licensed with the ZLIB license (see the LICENSE file) + compile=8g link=8l base=/tmp/calcscript diff --git a/calc/calcrc b/calc/calcrc index a9241d8..2a6cea6 100755 --- a/calc/calcrc +++ b/calc/calcrc @@ -1,4 +1,8 @@ #!/usr/bin/env rc + +# calc, (c) Oct, 2010, by Bill Burdick +# licensed with the ZLIB license (see the LICENSE file) + while (line=`{read}) { CALC_VARS=($CALC_VARS `{echo $line|sed -e 's/^([^=]*)=.*/\1/'}) eval $line -- 2.11.4.GIT