~ubuntu-branches/ubuntu/vivid/soundscaperenderer/vivid

« back to all changes in this revision

Viewing changes to data/local_ssr.sh

  • Committer: Package Import Robot
  • Author(s): IOhannes m zmölnig (Debian/GNU)
  • Date: 2014-05-08 16:58:09 UTC
  • Revision ID: package-import@ubuntu.com-20140508165809-7tz9dhu5pvo5wy25
Tags: upstream-0.4.1~dfsg
Import upstream version 0.4.1~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
# Shell-Script for starting the SSR locally in the tarball directory.
 
4
# This is not needed for the installed version!
 
5
 
 
6
# find the directory where the script is located
 
7
# (in case it was started from somewhere else)
 
8
DATA_DIR="$(dirname "$0")"
 
9
SCRIPTNAME="$(basename "$0")"
 
10
 
 
11
DEFAULT_EXECUTABLE=ssr-binaural
 
12
 
 
13
if [ "$SCRIPTNAME" = local_ssr.sh ]
 
14
then
 
15
  echo -n "Which SSR binary do you want to start? [$DEFAULT_EXECUTABLE] "
 
16
  read SCRIPTNAME
 
17
fi
 
18
 
 
19
SSR="$DATA_DIR/../src/${SCRIPTNAME:=$DEFAULT_EXECUTABLE}"
 
20
CONF="$DATA_DIR/ssr.conf.local"
 
21
 
 
22
if [ -x "$SSR" ]
 
23
then
 
24
  "$SSR" -c "$CONF" "$@"
 
25
else
 
26
  echo $0: Error: $SSR not found. Did you forget to \"make\" it?
 
27
  exit 1
 
28
fi
 
29
 
 
30
# Settings for Vim (http://www.vim.org/), please do not remove:
 
31
# vim:softtabstop=2:shiftwidth=2:expandtab:textwidth=80