/usr/bin/ember is in ember 0.7.2+dfsg-1build2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 48 49 50 51 | #!/bin/sh -eu
# Store away original args before they are overwritten
orig_args=$@
: ${bindir:="$( cd -P "$( dirname "$0" )" && pwd )"}
: ${prefix:="$( cd -P "$( dirname "$0" )/.." && pwd )"}
homedata="$HOME/.ember"
debugging=0
while [ $# -gt 0 ]; do
case "$1" in
--home)
shift
homedata="$1"
;;
--debug)
debugging=1
;;
--help)
echo "--debug - start in debugger (requires that 'gdb' is installed)"
exec $bindir/ember.bin --help >&2
exit 1
esac
shift
done
# Rely on built-in paths for installed binaries.
# Note that because of an issue with how CEGUI 0.8.2 detects dynamic libraries we need to include the CEGUI_MODULEDIR path
if [ "$prefix" != "/usr" ]; then
prefix_arg="--prefix $prefix"
export LD_LIBRARY_PATH=$prefix/lib:/usr/lib/cegui-0.8${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
else
prefix_arg=
export LD_LIBRARY_PATH=/usr/lib:/usr/lib/cegui-0.8${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
fi
cd $bindir
if [ $debugging = 1 ] ; then
# Execute real ember binary
echo "Starting Ember in debugger...."
gdb --batch -ex "run" -ex "backtrace" -ex "quit" \
--args $bindir/ember.bin $prefix_arg --config general:logginglevel verbose --home $homedata $orig_args
else
# Execute real ember binary
echo "Starting Ember...."
exec $bindir/ember.bin $prefix_arg --home $homedata $orig_args
fi
|