forked from macchina-io/macchina.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.zsh
executable file
·28 lines (26 loc) · 933 Bytes
/
env.zsh
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
basedir=`pwd`
osname=`uname`
osarch=`uname -m`
export MACCHINA_BASE="$basedir"
export MACCHINA_VERSION=`cat $basedir/VERSION`
export PROJECT_BASE="$MACCHINA_BASE"
export MACCHINA_CODECACHE="$MACCHINA_BASE/server/bin/$osname/$osarch/codeCache"
export POCO_BASE="$MACCHINA_BASE/platform"
if [ $osname = "Darwin" ] ; then
export DYLD_LIBRARY_PATH=$MACCHINA_CODECACHE:$POCO_BASE/lib/$osname/$osarch:$DYLD_LIBRARY_PATH
libPath=$DYLD_LIBRARY_PATH
libPathVar="DYLD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH=$MACCHINA_CODECACHE:$POCO_BASE/lib/$osname/$osarch:$LD_LIBRARY_PATH
libPath=$LD_LIBRARY_PATH
libPathVar="LD_LIBRARY_PATH "
fi
mkdir -p $MACCHINA_CODECACHE
echo "macchina.io EDGE build environment set."
echo ""
echo "\$MACCHINA_BASE = $MACCHINA_BASE"
echo "\$PROJECT_BASE = $PROJECT_BASE"
echo "\$POCO_BASE = $POCO_BASE"
echo "\$MACCHINA_VERSION = $MACCHINA_VERSION"
echo "\$$libPathVar = $libPath"
echo ""