Package: ams / 2.0.1-4

01-ams_launch_script.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Little script to set up the environment before launching ams
Author: by Free Ekanayaka <free@agnula.org>
Last-Update: 2009-12-09
---
 ams |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

--- /dev/null
+++ ams-2.0.0/ams
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Little script to set up the environment before launching ams
+#
+# Copyright (C) 2005 Free Ekanayaka <free@agnula.org>
+#
+# This script is licensed under the GNU GPL v2 - you can find a
+# complete copy of the license under /usr/share/common-licenses/GPL-2
+
+LADSPA_DEFAULT_PATH=/usr/lib/ladspa:/usr/local/ladspa
+OPTIONS=" --presetpath /usr/share/ams"
+
+if [ -z "$LADSPA_PATH" ]; then
+	export LADSPA_PATH=${LADSPA_DEFAULT_PATH}
+fi
+if [ $(ps -C jackd| wc -l) -gt 1 ]; then
+	OPTIONS="$OPTIONS --jack"
+fi
+
+exec /usr/lib/ams/ams.real $OPTIONS $@