forked from bylee20/bomi
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcmplayer.sh
More file actions
executable file
·47 lines (43 loc) · 1.03 KB
/
cmplayer.sh
File metadata and controls
executable file
·47 lines (43 loc) · 1.03 KB
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
#!/bin/sh
# from firefox running script
# found=0
# progname="$0"
# curdir=`dirname "$progname"`
# progbase=`basename "$progname"`
# run_cmplayer="$curdir/cmplayer-bin"
# if test -x "$run_cmplayer"; then
# dist_bin="$curdir"
# found=1
# else
# here=`/bin/pwd`
# while [ -h "$progname" ]; do
# bn=`basename "$progname"`
# cd `dirname "$progname"`
# progname=`/bin/ls -l "$bn" | sed -e 's/^.* -> //' `
# progbase=`basename "$progname"`
# if [ ! -x "$progname" ]; then
# break
# fi
# curdir=`dirname "$progname"`
# run_cmplayer="$curdir/cmplayer-bin"
# if [ -x "$run_cmplayer" ]; then
# cd "$curdir"
# dist_bin=`pwd`
# run_cmplayer="$dist_bin/cmplayer-bin"
# found=1
# break
# fi
# done
# cd "$here"
# fi
#
# if [ $found = 0 ]; then
# echo "Cannot find CMPlayer runtime directory. Exiting."
# exit 1
# fi
#
# LD_LIBRARY_PATH=${dist_bin}/lib:${LD_LIBRARY_PATH} \
# CMPLAYER_TRANSLATION_PATH=${dist_bin}/translations \
# CMPLAYER_PLUGIN_PATH=${dist_bin}/plugins ${run_cmplayer} "$@"
cmplayer "$@"
exit $exitcode