diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2013-05-06 23:05:57 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2013-05-06 23:11:01 +0200 |
commit | b90f5dd45239d32c59b0b1ad54e7188c81146b1b (patch) | |
tree | e0aee9ef64642ea365df0a7e9f97d2fdcc3ba91d | |
parent | 3c2e648cf35eee4f4bf7e55c9c3eb09a55b9645b (diff) | |
download | watch-bz-b90f5dd45239d32c59b0b1ad54e7188c81146b1b.tar.gz watch-bz-b90f5dd45239d32c59b0b1ad54e7188c81146b1b.tar.xz watch-bz-b90f5dd45239d32c59b0b1ad54e7188c81146b1b.zip |
Add a script to quickly generate a session for teamocil
See http://remiprev.github.io/teamocil/
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-x | mk-teamocil | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/mk-teamocil b/mk-teamocil new file mode 100755 index 0000000..fc57044 --- /dev/null +++ b/mk-teamocil @@ -0,0 +1,24 @@ +#!/bin/bash +# generate Teamocil session comprising selected components +# jpokorny@redhat.com (will be pleased to know about further enhancements) +# licensed under GPLv2+ (note: this file only, not the bundled helper) + +COMPONENTS="$@" + +if [ $# -eq 0 ]; then + echo "Usage: $0 [comp]* [-]" + exit +elif [ ${@: -1} = '-' ]; then + while read c; do + COMPONENTS+=" ${c}" + done +fi + +echo "windows:" +for c in $(echo ${COMPONENTS} | tr ' ' '\n' | sort); do + cat <<-EOF + - name: "${c}" + panes: + - cmd: "watch-bz ${c}" + EOF +done |