summaryrefslogtreecommitdiff
path: root/scripts/include.sh
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2014-10-08 18:43:02 +0200
committerChristian Pointner <equinox@spreadspace.org>2014-10-08 18:43:02 +0200
commit0bf931cf12c66abfd58e70dd1cf3659e828a8725 (patch)
tree4d2c63bb07f05825599bf25413b66e7275d5c5c0 /scripts/include.sh
parentfixed locale issue at command line parser (diff)
added scripts and configs for supervisord
Diffstat (limited to 'scripts/include.sh')
-rw-r--r--scripts/include.sh46
1 files changed, 46 insertions, 0 deletions
diff --git a/scripts/include.sh b/scripts/include.sh
new file mode 100644
index 0000000..3a809e9
--- /dev/null
+++ b/scripts/include.sh
@@ -0,0 +1,46 @@
+get_id_title_and_port() {
+ case "$1" in
+ 00)
+ TITLE='ESC: Ministry of Hacking'
+ PORT_BASE=5010
+ ID='esc'
+ ;;
+ 01)
+ TITLE='Gemeinschaftsprojekt Attemsgarten'
+ PORT_BASE=5020
+ ID='gag'
+ ;;
+ 02)
+ TITLE='rathaus der herzen'
+ PORT_BASE=5030
+ ID='rdh'
+ ;;
+ 03)
+ TITLE='realraum'
+ PORT_BASE=5040
+ ID='r3'
+ ;;
+ 04)
+ TITLE='&lt;rotor&gt; Zentrum für zetgenössische Kunst'
+ PORT_BASE=5050
+ ID='rot'
+ ;;
+ 05)
+ TITLE='Spektral'
+ PORT_BASE=5060
+ ID='spe'
+ ;;
+ esac
+}
+
+get_num() {
+ case "$1" in
+ 'esc') NUM=00 ;;
+ 'gag') NUM=01 ;;
+ 'rdh') NUM=02 ;;
+ 'r3') NUM=03 ;;
+ 'rot') NUM=04 ;;
+ 'spe') NUM=05 ;;
+ esac
+}
+