X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=bootstrap.sh;h=810ac1240882e883ef889960001ef1897fb304fd;hb=b58e16b078df97d8aabf64a8e4d0d8ce37ad3877;hp=0bf6c3d3739e558d97ab24d8a4568c8291359814;hpb=5a385d772194809ee72cb258aba1aae54ff0dd7e;p=builder.git diff --git a/bootstrap.sh b/bootstrap.sh index 0bf6c3d..810ac12 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -3,8 +3,9 @@ set -e +INCLUDEDIR=temp/bootstrap/include REQUIRED="core datafile" -CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`" +CFLAGS="-I$INCLUDEDIR `pkg-config --cflags sigc++-2.0`" LIBS="`pkg-config --libs sigc++-2.0` -lpthread" MACHINE="`uname -m`" if [ "$MACHINE" = "x86_64" ]; then @@ -19,8 +20,8 @@ if [ -z "$LIBPATH" -o "${LIBPATH%%/*}" ]; then LIBPATH=`pwd`/${LIBPATH:-..} fi -rm -rf include -mkdir -p include/msp +rm -rf "$INCLUDEDIR" +mkdir -p "$INCLUDEDIR/msp" sources=source/*.cpp @@ -31,9 +32,9 @@ for i in $REQUIRED; do missing="$missing msp$i" else if [ $i = "core" ]; then - ln -sf $path/source/* include/msp/ + ln -sf $path/source/* "$INCLUDEDIR/msp/" else - ln -sf $path/source include/msp/$i + ln -sf $path/source "$INCLUDEDIR/msp/$i" fi sources="$sources `find $path/source -name '*.cpp'`" fi