Tools/scripts: limit scope the script searches

The script now searches on limited depth and ignores distfiles folder.

Reported by:	diizzy
This commit is contained in:
Matthias Fechner 2022-03-28 09:39:40 +02:00
parent 25c952626c
commit 760896708c

View File

@ -33,7 +33,7 @@ PORT_TO_SEARCH=${1}
BASEDIR=$(pwd)
# Get a list of all ports
echo "Prepare a list of all ports"
ports=$(find . -name Makefile ! -path "./Tools/* | sort")
ports=`find . -name Makefile -maxdepth 3 -not \( -path "./distfiles/*" -prune \) -not \( -path "./Tools/*" -prune \) -print | sort`
echo "done."
echo