From 53ee2a61c2772e91d66f544bfd3d6a933cbd1b19 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 2 Dec 2011 10:00:24 +0100 Subject: //assets: initial commit of assets toolkit written from specs defined in //cholerab/assets/ass.txt --- assets/bin/ass | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 assets/bin/ass (limited to 'assets/bin') 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 -- cgit v1.2.3