chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518726f
)
toplevel-find: allow ////-commented toplevel module directives
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 16 Feb 2016 21:20:11 +0000
(21:20 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 16 Feb 2016 21:20:23 +0000
(21:20 +0000)
This allows including .scad files to specify explicitly which
toplevels to generate.
toplevel-find
patch
|
blob
|
history
diff --git
a/toplevel-find
b/toplevel-find
index 58c35549f10930538f4ca180468609b11dd15ef1..3e3c28b90cb1f6cf8ad97fa0a88d9cff9aa29973 100755
(executable)
--- a/
toplevel-find
+++ b/
toplevel-find
@@
-11,7
+11,7
@@
while (<F>) {
open F, "$1" or die "$1 $!";
next;
}
- next unless m#^\s*module\s+(\w+)\b.*////toplevel\b#;
+ next unless m#^\s*
(?:////\s?)?
module\s+(\w+)\b.*////toplevel\b#;
print "$base,$1\n" or die $!;
}
close F or die $!;