mirror of
https://github.com/digarok/buckshot.git
synced 2024-11-30 20:49:51 +00:00
13 lines
234 B
Bash
13 lines
234 B
Bash
#!/bin/sh
|
|
appname=`basename $0 | sed s,\.sh$,,`
|
|
|
|
dirname=`dirname $0`
|
|
tmp="${dirname#?}"
|
|
|
|
if [ "${dirname%$tmp}" != "/" ]; then
|
|
dirname="$PWD/$dirname"
|
|
fi
|
|
LD_LIBRARY_PATH="$dirname/lib"
|
|
export LD_LIBRARY_PATH
|
|
"$dirname/$appname" "$@"
|