]> git.tdb.fi Git - builder.git/blobdiff - bootstrap.sh
Move the logic for creating targets into the Component class
[builder.git] / bootstrap.sh
index 93ee706b1ccf47772d4e6af96005f735a7f06a16..f5ccced293f8ad18e3f623fc3947c02559b40e24 100755 (executable)
@@ -1,12 +1,14 @@
 #!/bin/sh
 
-REQUIRED="misc core parser path regex++ getopt++"
+REQUIRED="core parser path strings"
 CFLAGS="-Iinclude `pkg-config --cflags sigc++-2.0`"
 LIBS="`pkg-config --libs sigc++-2.0` -lpthread"
 if [ -z "$LIBPATH" ]; then
        LIBPATH=`pwd`/..
 fi
 
+LIBPATH=`readlink -f $LIBPATH`
+
 mkdir -p include/msp
 
 sources=source/*.cpp
@@ -18,12 +20,12 @@ for i in $REQUIRED; do
                exit 1
        fi
        if [ $i = "core" ]; then
-               ln -sf $path/source/core include/msp/core
-               ln -sf $path/source/time include/msp/time
+               ln -sfT $path/source/core include/msp/core
+               ln -sfT $path/source/time include/msp/time
        elif [ $i = "misc" ]; then
                ln -sf $path/source/*.h include/msp
        else
-               ln -sf $path/source include/msp/$i
+               ln -sfT $path/source include/msp/$i
        fi
        sources="$sources `find $path/source -name '*.cpp'`"
 done