]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.0.1
authorfred <fred>
Tue, 17 Mar 1998 00:16:30 +0000 (00:16 +0000)
committerfred <fred>
Tue, 17 Mar 1998 00:16:30 +0000 (00:16 +0000)
buildscripts/find-typenames.pl [new file with mode: 0644]

diff --git a/buildscripts/find-typenames.pl b/buildscripts/find-typenames.pl
new file mode 100644 (file)
index 0000000..890f9ca
--- /dev/null
@@ -0,0 +1,20 @@
+#!@PERL@
+
+open GREP, "egrep -h '^struct|^class' *.hh *.cc|";
+open OUT, "|sort | uniq";
+while (<GREP>) {
+
+       s/^struct/class/;
+       if (! /; *$/) {
+               s/:[^{]+{.*$//;
+               s/ *{.*$/;/;
+       }
+       if (! /; *$/) {
+               chop;
+               $_ .= ";\n";
+               
+       }
+       print OUT;
+}
+close OUT;
+close GREP;