]> git.tdb.fi Git - builder.git/commitdiff
Make bootstrap.sh create the staging include directory in temp
authorMikko Rasa <tdb@tdb.fi>
Fri, 20 Jul 2012 20:49:51 +0000 (23:49 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 20 Jul 2012 20:56:07 +0000 (23:56 +0300)
bootstrap.sh

index 0bf6c3d3739e558d97ab24d8a4568c8291359814..810ac1240882e883ef889960001ef1897fb304fd 100755 (executable)
@@ -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