forked from d-s-x/bomi
-
Notifications
You must be signed in to change notification settings - Fork 1
/
bomi.sh
executable file
·47 lines (43 loc) · 1015 Bytes
/
bomi.sh
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_bomi="$curdir/bomi-bin"
# if test -x "$run_bomi"; 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_bomi="$curdir/bomi-bin"
# if [ -x "$run_bomi" ]; then
# cd "$curdir"
# dist_bin=`pwd`
# run_bomi="$dist_bin/bomi-bin"
# found=1
# break
# fi
# done
# cd "$here"
# fi
#
# if [ $found = 0 ]; then
# echo "Cannot find bomi 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_bomi} "$@"
bomi "$@"
exit $exitcode