X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=blobdiff_plain;f=toplevel-find;h=72d54a0180253e563997e0ebaca60da059b04207;hp=227bb73a7989d0714b55abd78fbf83b8b63213a0;hb=5c10cc3d8ccef09bcdacdbe5ce9adb07658b97b5;hpb=fcd425d28e0fd254673250e4c5d13db7b98aab48 diff --git a/toplevel-find b/toplevel-find index 227bb73..72d54a0 100755 --- a/toplevel-find +++ b/toplevel-find @@ -3,7 +3,7 @@ use strict; @ARGV==1 or die; my $base = $ARGV[0]; $base =~ m/^\-/ and die; -open F, "$base.scad" or die $!; +open F, "$base.scad" or die "$base.scad $!"; while () { next unless m#^\s*module\s+(\w+)\b.*////toplevel\b#; print "$base,$1\n" or die $!;