From: fred Date: Tue, 17 Mar 1998 00:16:30 +0000 (+0000) Subject: lilypond-1.0.1 X-Git-Tag: release/1.5.59~5991 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=375fe35d011134332e5503644e9b4a65180afe8f;p=lilypond.git lilypond-1.0.1 --- diff --git a/buildscripts/find-typenames.pl b/buildscripts/find-typenames.pl new file mode 100644 index 0000000000..890f9cabd0 --- /dev/null +++ b/buildscripts/find-typenames.pl @@ -0,0 +1,20 @@ +#!@PERL@ + +open GREP, "egrep -h '^struct|^class' *.hh *.cc|"; +open OUT, "|sort | uniq"; +while () { + + s/^struct/class/; + if (! /; *$/) { + s/:[^{]+{.*$//; + s/ *{.*$/;/; + } + if (! /; *$/) { + chop; + $_ .= ";\n"; + + } + print OUT; +} +close OUT; +close GREP;