mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 11:41:46 +02:00
Renamed ZetaGlest to Glest
This commit is contained in:
21
mk/linux/tools-for-standalone-client/start_glest_g3dviewer
Normal file
21
mk/linux/tools-for-standalone-client/start_glest_g3dviewer
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/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")"
|
||||
# -------
|
||||
# useful for mods
|
||||
EXC_BINARY="glest_g3dviewer"
|
||||
BASIC_SCRIPT="start_glest"
|
||||
# -------
|
||||
LIBDIR="lib"
|
||||
WARNINGS="$("$GAMEDIR/$BASIC_SCRIPT" --tool-g3dviewer "$EXC_BINARY" 2>&1)"
|
||||
if [ -d "$GAMEDIR/$LIBDIR" ]; then
|
||||
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${GAMEDIR}/${LIBDIR}"
|
||||
fi
|
||||
BeginTime="$(date +"%s")"
|
||||
"$GAMEDIR/$EXC_BINARY" "$@"
|
||||
"$GAMEDIR/$BASIC_SCRIPT" --tool-buginfo "$?" "$WARNINGS" "$BeginTime" "$(date +"%s")" "$EXC_BINARY"
|
Reference in New Issue
Block a user