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