File: config.sh

package info (click to toggle)
sofa-framework 1.0~beta4-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 88,688 kB
  • ctags: 27,205
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 67
file content (13 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
PLATFORM=$(uname)
if [ "$PLATFORM" == "Darwin" ]; then
PLATFORM=macx
else
PLATFORM=linux
fi
export SOFA_DIR=$PWD
export PATH=$SOFA_DIR/bin:$PATH
export LD_LIBRARY_PATH=$SOFA_DIR/lib/$PLATFORM:$LD_LIBRARY_PATH
if [ "$PLATFORM" == "macx" ]; then
export DYLD_LIBRARY_PATH=$SOFA_DIR/lib/$PLATFORM:$DYLD_LIBRARY_PATH
fi