lilypond-1.3.122
[lilypond.git] / buildscripts / find-typenames.pl
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/ *{.*$/;/;
12 if (! /; *$/) {
13 chop;
14 $_ .= ";\n";
17 print OUT;
19 close OUT;
20 close GREP;