From: Ian Jackson Date: Tue, 16 Feb 2016 21:20:11 +0000 (+0000) Subject: toplevel-find: allow ////-commented toplevel module directives X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=c14a7572bde130884cd3039da99618eae6fb439d;p=reprap-play.git toplevel-find: allow ////-commented toplevel module directives This allows including .scad files to specify explicitly which toplevels to generate. --- diff --git a/toplevel-find b/toplevel-find index 58c3554..3e3c28b 100755 --- a/toplevel-find +++ b/toplevel-find @@ -11,7 +11,7 @@ while () { 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 $!;