This fixes a test failures in the cmake branch which contains sub directories in the methods output dir.
@@ -16,7 +16,7 @@ rm "$NEWMETHODS"
mkdir "$NEWMETHODS"
backupIFS="$IFS"
IFS="$(printf "\n\b")"
-for METH in $(find "$OLDMETHODS" ! -type d); do
+for METH in $(find "$OLDMETHODS" -maxdepth 1 ! -type d); do
ln -s "$OLDMETHODS/$(basename "$METH")" "$NEWMETHODS"
done
IFS="$backupIFS"
@@ -45,7 +45,7 @@ rm "$NEWMETHODS"
@@ -17,7 +17,7 @@ rm "$NEWMETHODS"