lilypond-0.1.15
[lilypond.git] / bin / find-typenames.pl
blobe08fd00800578e33c56353b9e507196a196c95f5
1 #!/usr/bin/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;