diff options
| author | 2026-03-09 16:46:57 -0700 | |
|---|---|---|
| committer | 2026-03-09 16:50:31 -0700 | |
| commit | 7ae580d775818328a098c887446d88add6ff1067 (patch) | |
| tree | 8ddfc3bc86abdab8601b82cf9c7d141fd1c59671 /oni-php/scripts | |
| parent | ba9102ed1b484bb9e30ff48008da5cbb14b2de8d (diff) | |
| download | emacs-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-x | oni-php/scripts/find-php-class | 5 |
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" |
