mirror of https://github.com/odrling/Aegisub
Make run.sh work regardless of $PWD.
Originally committed to SVN as r6893.
This commit is contained in:
parent
03b1b8e1c0
commit
acea3a04e0
|
@ -1,17 +1,17 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
BIN="aegisub-3.0"
|
BINDIR="$(dirname "$0")"
|
||||||
|
BIN="$BINDIR/aegisub-3.0"
|
||||||
|
LIBDIR="$BINDIR/../libaegisub"
|
||||||
|
|
||||||
if ! test -x ${BIN}; then
|
if ! test -x "${BIN}"; then
|
||||||
echo "${BIN} does not exist";
|
echo "${BIN} does not exist or is not executable.";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"gdb")
|
"gdb")
|
||||||
LD_LIBRARY_PATH="../libaegisub" exec gdb ./${BIN}
|
GDB="gdb"
|
||||||
;;
|
;;
|
||||||
*)
|
|
||||||
LD_LIBRARY_PATH="../libaegisub" exec ./${BIN}
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
LD_LIBRARY_PATH="$LIBDIR" exec $GDB "./$BIN"
|
||||||
|
|
Loading…
Reference in New Issue