]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.22
authorfred <fred>
Fri, 23 May 1997 09:43:04 +0000 (09:43 +0000)
committerfred <fred>
Fri, 23 May 1997 09:43:04 +0000 (09:43 +0000)
bin/find-typenames.pl [new file with mode: 0644]

diff --git a/bin/find-typenames.pl b/bin/find-typenames.pl
new file mode 100644 (file)
index 0000000..e08fd00
--- /dev/null
@@ -0,0 +1,20 @@
+#!/usr/bin/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;