aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php/scripts
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-03-09 16:46:57 -0700
committerGravatar Tom Willemse2026-03-09 16:50:31 -0700
commit7ae580d775818328a098c887446d88add6ff1067 (patch)
tree8ddfc3bc86abdab8601b82cf9c7d141fd1c59671 /oni-php/scripts
parentba9102ed1b484bb9e30ff48008da5cbb14b2de8d (diff)
downloademacs-config-7ae580d775818328a098c887446d88add6ff1067.tar.gz
emacs-config-7ae580d775818328a098c887446d88add6ff1067.zip
find-php-class: Ignore cdk.out directory
This directory is large and slows down the find operation AND causes old matches to show up.
Diffstat (limited to 'oni-php/scripts')
-rwxr-xr-xoni-php/scripts/find-php-class5
1 files changed, 4 insertions, 1 deletions
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"