summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmk-teamocil24
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