diff options
author | root <root@kremium> | 2011-12-02 10:00:24 +0100 |
---|---|---|
committer | root <root@kremium> | 2011-12-02 10:02:12 +0100 |
commit | 53ee2a61c2772e91d66f544bfd3d6a933cbd1b19 (patch) | |
tree | 422201448efbfec7eb23233629ce613f13569f94 | |
parent | b0f4a3b08ec976b4edbb6b926494196ff02fdb0a (diff) |
//assets: initial commit of assets toolkit
written from specs defined in //cholerab/assets/ass.txt
-rwxr-xr-x | assets/bin/ass | 21 |
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 |