File: sdsdsp.in

package info (click to toggle)
somaplayer 0.5.2-2.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,668 kB
  • ctags: 2,521
  • sloc: ansic: 32,358; sh: 9,393; makefile: 858; yacc: 316; sed: 16
file content (65 lines) | stat: -rwxr-xr-x 977 bytes parent folder | download | duplicates (2)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh

verbose=0
set_name=0

prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
bindir=@bindir@

while test $# -gt 0; do

    case "$1" in

	-h|--help)
		echo "sdsdsp - attempt to reroute audio device to sds"
		echo " "
		echo "sdsdsp [options] player arguments"
		echo " "
		echo "options:"
		echo "-h, --help                show this help and exit"
		echo "-s, --server=HOST:PORT    contact sds server on host at port"
		echo "-v, --verbose             show parameters"
		exit 0
		;;

	-s)
		shift
		if test $# -gt 0; then
			SDSHOST=$1
			export SDSHOST
		else
			echo "no server specified"
			exit 1
		fi
		shift
		;;

	--server*)
		SDSHOST=`echo $1 | sed -e 's/^[^=]*=//g'`
		export SDSHOST
		shift
		;;

	-v|--verbose)
		verbose=1
		shift
		;;

	*)
		break
		;;
    esac
done

if test "$verbose" = 1; then
	echo "server:		$SDSHOST"
	echo "command line:	$@"
fi

LD_PRELOAD=$libdir/libsdsdsp.so.0:$LD_PRELOAD
export LD_PRELOAD

exec "$@"