summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot <root@kremium>2011-12-02 10:00:24 +0100
committerroot <root@kremium>2011-12-02 10:02:12 +0100
commit53ee2a61c2772e91d66f544bfd3d6a933cbd1b19 (patch)
tree422201448efbfec7eb23233629ce613f13569f94
parentb0f4a3b08ec976b4edbb6b926494196ff02fdb0a (diff)
//assets: initial commit of assets toolkit
written from specs defined in //cholerab/assets/ass.txt
-rwxr-xr-xassets/bin/ass21
1 files changed, 21 insertions, 0 deletions
diff --git a/assets/bin/ass b/assets/bin/ass
new file mode 100755
index 00000000..61d315fd
--- /dev/null
+++ b/assets/bin/ass
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -euf
+
+JOURNAL="/krebs/db/truth.db"
+
+METHOD="$1"
+shift
+
+case $METHOD in
+"create")
+ echo "`date +%s.%N`: create $1" | tee -a $JOURNAL
+;;
+"set")
+ echo "`date +%s.%N`: set $1 $2 $3" | tee -a $JOURNAL
+;;
+*)
+ echo "you are made of stupid!"
+ exit 23
+;;
+esac