From 463a8e4f14dcc1da7aecb48ac4b012f08017fea7 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 9 Dec 2011 19:06:05 +0100 Subject: //assets/bin/asq: quick ass will use ass and the environment to automate creation task --- assets/bin/asq | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 assets/bin/asq (limited to 'assets') diff --git a/assets/bin/asq b/assets/bin/asq new file mode 100755 index 00000000..732a296a --- /dev/null +++ b/assets/bin/asq @@ -0,0 +1,21 @@ +#!/bin/bash +set -xeuf +cd $(dirname $(readlink -f $0)) + +if [ "$1" == "c" ];then + echo ./ass create "$2" && export ASS_CREATED="$2" + if [ "${ASS_OWNER-}" ]; then + $0 s "owner" "${ASS_OWNER}" + fi + if [ "${ASS_LOCATION-}" ]; then + $0 s "location" "${ASS_LOCATION}" + fi +else if [ "$1" == "s" ] +then + echo ./ass set "${ASS_CREATED}" "${2}" "${3}" + else + echo "you are made of stupid!" + cat $0 + exit 23 + fi +fi -- cgit v1.2.3