forked from BearWare/TeamTalk5
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh
More file actions
executable file
·25 lines (22 loc) · 729 Bytes
/
env.sh
File metadata and controls
executable file
·25 lines (22 loc) · 729 Bytes
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
#!/bin/bash
# Find absolute path (that works on both macOS and Linux :( )
CURDIR=$PWD
ENVDIR="${BASH_SOURCE[0]}"
# zsh does not set BASH_SOURCE variable, so assume zsh if blank
if [ -z $ENVDIR ]; then
echo "BASH_SOURCE is blank so using zsh syntax"
ENVDIR=${0:a:h}
else
ENVDIR=$(dirname $ENVDIR)
fi
TEAMTALK_ROOT=$ENVDIR
cd $TEAMTALK_ROOT
TEAMTALK_ROOT=$(pwd -P)
cd $CURDIR
PYTHONPATH=$TEAMTALK_ROOT/Library/TeamTalkPy:$PYTHONPATH
export TEAMTALK_ROOT PYTHONPATH
if [ "Darwin" = `uname -s` ]; then
export DYLD_LIBRARY_PATH=$TEAMTALK_ROOT/Library/TeamTalk_DLL:$TEAMTALK_ROOT/Library/TeamTalkJNI/libs
else
export LD_LIBRARY_PATH=$TEAMTALK_ROOT/Library/TeamTalk_DLL:$TEAMTALK_ROOT/Library/TeamTalkJNI/libs
fi