git: 760896708c6b - main - Tools/scripts: limit scope the script searches

From: Matthias Fechner <mfechner_at_FreeBSD.org>
Date: Mon, 28 Mar 2022 07:41:35 UTC
The branch main has been updated by mfechner:

URL: https://cgit.FreeBSD.org/ports/commit/?id=760896708c6b81edc7fcb15d0910002af4e6ced8

commit 760896708c6b81edc7fcb15d0910002af4e6ced8
Author:     Matthias Fechner <mfechner@FreeBSD.org>
AuthorDate: 2022-03-28 07:39:40 +0000
Commit:     Matthias Fechner <mfechner@FreeBSD.org>
CommitDate: 2022-03-28 07:40:46 +0000

    Tools/scripts: limit scope the script searches
    
    The script now searches on limited depth and ignores distfiles folder.
    
    Reported by:    diizzy
---
 Tools/scripts/search_lib_depends_and_bump.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Tools/scripts/search_lib_depends_and_bump.sh b/Tools/scripts/search_lib_depends_and_bump.sh
index 408e4e72d287..fe443d9c5e11 100755
--- a/Tools/scripts/search_lib_depends_and_bump.sh
+++ b/Tools/scripts/search_lib_depends_and_bump.sh
@@ -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