summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-12-07 13:14:01 (EST)
committer P. J. McDermott <pj@pehjota.net>2015-12-07 13:14:01 (EST)
commit02b7c960947c4a33af50a9829edf73e5d4c32ffc (patch)
tree1059fe21c545951eed0342b37ebc3073d101a210 /tools
parent7389f392df22be8eb912892dfa8dba5e5d5fc6a8 (diff)
tools/shpp.sh: Add error() function
Diffstat (limited to 'tools')
-rwxr-xr-xtools/shpp.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/shpp.sh b/tools/shpp.sh
index c54c7b7..891f9bd 100755
--- a/tools/shpp.sh
+++ b/tools/shpp.sh
@@ -31,6 +31,14 @@ die()
exit 2
}
+error()
+{
+ local fmt="${1}"
+ shift 1
+
+ printf "shpp: ${fmt}\n" "${@}"
+}
+
preprocess()
{
local vars="${1}"