]> git.zerfleddert.de Git - micropolis/blame - res/sounds/player
inform user, when no audio player is found
[micropolis] / res / sounds / player
CommitLineData
851812f3 1#!/bin/bash
e4270049 2
851812f3 3PLAYER=
e4270049
MG
4
5if [ -x "`which aplay`" ]; then
6 PLAYER=aplay
7elif [ -x "`which play`" ]; then
8 PLAYER=play
9elif [ -x "`which mplayer`" ]; then
10 PLAYER="mplayer -nogui -nocache"
11fi
12
851812f3
MG
13if [ "x${PLAYER}" = "x" ]; then
14 echo "Can't find audio player!"
15 echo "Please make sure you have aplay, play or mplayer in your path."
16 if [ "`uname`" = "Darwin" ]; then
17 echo "A working play for OS X is available from:"
18 echo "http://www.hieper.nl/html/play.html"
19 fi
20else
21 exec ${PLAYER} "$@" >/dev/null 2>&1
22fi
Impressum, Datenschutz