This is my attempt at conditional assignment of app according to OS. It
is code fragment for first few line of mplayer.sh. On my SuSE system it
takes the non-Darwin path.
Code:
--------------------
#!/bin/sh
# Determine our OS name and CPU architecture
system_name=`uname -s 2>&1`
if test "$system_name" = "Darwin" ; then
app=/usr/local/bin/mplayer
echo Darwin path chosen >&2
else
app=mplayer
echo Non darwin path >&2
fi
scriptpid=$$
apppid=/tmp/.alienbbc-app.$$.pid
--------------------
--
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=22476
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins