File: start_megaglest_configurator

package info (click to toggle)
megaglest 3.6.0.3-1.2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,868 kB
  • sloc: cpp: 106,993; ansic: 10,163; perl: 2,304; python: 1,504; php: 491; sh: 436; objc: 406; sql: 76; makefile: 12
file content (22 lines) | stat: -rwxr-xr-x 513 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Library directory
LIBDIR="lib"

# If we are launching from a symlink, such as /usr/local/bin/runglest.sh, we need to get where
# the symlink points to
pth="`readlink $0`"

# $pth will be empty if our start path wasnt a symlink
if [ $pth ]; then
	GAMEDIR="`dirname $pth`"
else
	GAMEDIR="`dirname $0`"
fi
 
# Change to the game dir, and go!
cd $GAMEDIR
# export game library directory
test -n "${LIBDIR}" && export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GAMEDIR}/${LIBDIR}"

./megaglest_configurator $@