File: config.sh

package info (click to toggle)
sofa-framework 1.0~beta4-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 88,224 kB
  • ctags: 26,759
  • sloc: cpp: 151,113; ansic: 2,387; xml: 581; sh: 431; makefile: 101
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