From 7ae580d775818328a098c887446d88add6ff1067 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 9 Mar 2026 16:46:57 -0700 Subject: find-php-class: Ignore cdk.out directory This directory is large and slows down the find operation AND causes old matches to show up. --- oni-php/scripts/find-php-class | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'oni-php/scripts/find-php-class') diff --git a/oni-php/scripts/find-php-class b/oni-php/scripts/find-php-class index d8795c2..d38cb13 100755 --- a/oni-php/scripts/find-php-class +++ b/oni-php/scripts/find-php-class @@ -4,7 +4,10 @@ (define (main args) (let* ((class-name (cadr args)) (file-names - (run/strings (find "." -type f -name ,(string-append class-name ".php") + (run/strings (find "." + -path "./cdk.out" -prune -o + -type f + -name ,(string-append class-name ".php") -exec grep "^namespace" "{}" ";") (> 2 "/dev/null")))) (format #t "~s" -- cgit v1.3-2-g0d8e