+
+ check_overlay=""
+ for j in $use_overlays; do
+ [ -z "$check_overlay" ] || check_overlay="$check_overlay -o "
+ check_overlay="${check_overlay}-name $j"
+ done
+ findargs="$subdirs"
+ if [ "$check_overlay" ]; then
+ findargs="$findargs -mindepth 1 ( -type d ! ( $check_overlay ) -prune -false ) -o "
+ fi
+
+ headers=`find $findargs -name '*.h'`
+ for j in $headers; do
+ rel=${j#$path/source/}
+ comp=${rel%%/*}
+ if [ "$comp" = "$rel" ]; then
+ comp=$i
+ fi
+ mkdir -p "$INCLUDEDIR/msp/$comp"
+ ln -sf $j "$INCLUDEDIR/msp/$comp/"
+ done
+ sources="$sources `find $findargs -name '*.cpp'`"