projects
/
old-projects.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b7ed6
)
handle require_once and include_once, allow single quotes
master
author
Jeremy Laine
<jeremy.laine@m4x.org>
Fri, 14 Jan 2005 18:10:55 +0000
(18:10 +0000)
committer
Jeremy Laine
<jeremy.laine@m4x.org>
Fri, 14 Jan 2005 18:10:55 +0000
(18:10 +0000)
deptrack/src/deptrack.in
patch
|
blob
|
blame
|
history
diff --git
a/deptrack/src/deptrack.in
b/deptrack/src/deptrack.in
index
efe9f81
..
64384c4
100644
(file)
--- a/
deptrack/src/deptrack.in
+++ b/
deptrack/src/deptrack.in
@@
-311,7
+311,7
@@
sub parsefile {
@phplines = &tagstrip("/*","*/",@phplines);
@phplines = &commentstrip("\/\/",@phplines);
@phplines = &commentstrip("#",@phplines);
- @includes = grep s/.*(require|
include)\s*\({0,1}\"(.*)\"
\){0,1}.*\n$/$2/, @phplines;
+ @includes = grep s/.*(require|
require_once|include|include_once)\s*\({0,1}[\"\'](.*)[\"\']
\){0,1}.*\n$/$2/, @phplines;
foreach my $include (@includes) {
&dprint("REQ:$include\n");
if ($include =~ /$mask_php/) {