Debian Codegraph @

packaging/appimage/AppRun

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2
3 HERE="$(dirnamescip-shell system . . dirname. "$(readlinkscip-shell system . . readlink. -f "${0}")")"
4
5 # Allow the AppImage to be symlinked to e.g., /usr/bin/freaccmd
6 # or called with ./freac*.AppImage freaccmd ...
7
8 if [scip-shell system . . `[`. ! -z "$APPIMAGE" ] ; then
9 BINARY_NAME=$(basenamescip-shell system . . basename. "$ARGV0")
10 else
11 BINARY_NAME=$(basenamescip-shell system . . basename. "$0")
12 fi
13 if [scip-shell system . . `[`. ! -z "$1" ] && [scip-shell system . . `[`. -x "$HERE/$1" ] && [scip-shell system . . `[`. ! -d "$HERE/$1" ] ; then
14 MAIN="$HERE/$1" ; shift
15 elif [scip-shell system . . `[`. -x "$HERE/$BINARY_NAME" ] && [scip-shell system . . `[`. ! -d "$HERE/$BINARY_NAME" ] ; then
16 MAIN="$HERE/$BINARY_NAME"
17 else
18 MAIN="$HERE/freac"
19 fi
20
21 # Use system SSL libraries over our own if available
22
23 if ! ld.soscip-shell system . . `ld.so`. --list --library-path "${HERE}" "${HERE}/libsmooth-0.9.so.0" > /dev/nullscip-shell filesystem . . `/dev/null`. 2> /dev/nullscip-shell filesystem . . `/dev/null`.; then
24 LIBRARY_PATH="${HERE}/openssl"
25 fi
26
27 LD_LIBRARY_PATH="${HERE}:${LIBRARY_PATH}" \
28 LD_PRELOAD="${HERE}/codecs/ogg.so:${HERE}/codecs/vorbis.so" \
29 exec "${MAIN}" "$@"