]> git.tdb.fi Git - builder.git/blobdiff - bootstrap.sh
Improve automatic package finding to detect directories with version number
[builder.git] / bootstrap.sh
index f0f51a7ea069c8e6b7a13dd4269626711bd4ce8d..362343a65598b20649956753cf2363d70f90fde7 100755 (executable)
@@ -17,13 +17,13 @@ mkdir -p include/msp
 sources=source/*.cpp
 
 for i in $REQUIRED; do
-       path=$LIBPATH/$i
-       if [ ! -e $path ]; then
-               echo $i missing
+       path=`ls -1d $LIBPATH/*$i* 2>/dev/null | head -1`
+       if [ ! -d $path ]; then
+               echo msp$i missing
                exit 1
        fi
        if [ $i = "core" ]; then
-               ln -sfT $path/source/* -t include/msp
+               ln -sf $path/source/* -t include/msp
        else
                ln -sfT $path/source include/msp/$i
        fi