lilypond-1.1.33
[lilypond.git] / bin / find-typenames.in
blob890f9cabd060498408f9b93995d36af016b4918e
1 #!@PERL@
3 open GREP, "egrep -h '^struct|^class' *.hh *.cc|";
4 open OUT, "|sort | uniq";
5 while (<GREP>) {
7         s/^struct/class/;
8         if (! /; *$/) {
9                 s/:[^{]+{.*$//;
10                 s/ *{.*$/;/;
11         }
12         if (! /; *$/) {
13                 chop;
14                 $_ .= ";\n";
15                 
16         }
17         print OUT;
19 close OUT;
20 close GREP;