mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 11:42:31 +01:00
17 lines
604 B
Bash
Executable File
17 lines
604 B
Bash
Executable File
#!/bin/sh
|
|
# 2014 Written by filux <heross(@@)o2.pl>
|
|
# Copyright (c) 2014-2015 under GNU GPL v3.0+
|
|
# ----------------------------------------------------------------------------
|
|
LANG=C
|
|
|
|
SCRIPTLOCATION="$(readlink -f "$0")"
|
|
GAMEDIR="$(dirname "$SCRIPTLOCATION")"
|
|
LIBDIR="lib"
|
|
WARNINGS="$($GAMEDIR/start_megaglest --tool-g3dviewer 2>&1)"
|
|
if [ -d "$GAMEDIR/$LIBDIR" ]; then
|
|
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${GAMEDIR}/${LIBDIR}"
|
|
fi
|
|
BeginTime="$(date +"%s")"
|
|
$GAMEDIR/megaglest_g3dviewer $@
|
|
$GAMEDIR/start_megaglest --tool-buginfo "$?" "$WARNINGS" "$BeginTime" "$(date +"%s")"
|