Revision 0c1b0f20

View differences:

build_all.sh
3 3
cd "$BUILD_ROOT_DIR"
4 4
BUILD_ROOT_DIR=`pwd`
5 5

  
6
#check the architecture
7
if [ "$OSTYPE" == "linux-gnu" ]; then
8
   # do something Linux-y
9
   echo "Building for Linux"
10
elif [ "$OSTYPE" == "darwin10.0" ]; then
11
   # do something OSX-y
12
   echo "Building for OSX"
13
   CFLAGS="$CFLAGS -DMAC_OS"
14
   CXXFLAGS="$CXXFLAGS -DMAC_OS"
15
   OBJ_CHECK=0
16
   [ "$STATIC"==2 ] && STATIC=1
17
fi
18

  
6 19
if [ -n "$ALL_DIR" ] ; then
7 20
  [ -e "$ALL_DIR" ] || { echo "Directory in \$ALL_DIR does not exist: $ALL_DIR"; exit; }  
8 21
  [ -z "$LIBEVENT_DIR" ] && LIBEVENT_DIR=$ALL_DIR/libevent

Also available in: Unified diff