aboutsummaryrefslogtreecommitdiffstats
path: root/oni-php/scripts/find-php-class
diff options
context:
space:
mode:
Diffstat (limited to 'oni-php/scripts/find-php-class')
-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"