Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Mar 2022 07:41:35 GMT
From:      Matthias Fechner <mfechner@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 760896708c6b - main - Tools/scripts: limit scope the script searches
Message-ID:  <202203280741.22S7fZ7J062024@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203280741.22S7fZ7J062024>