From f3b15cd53e1ab22fa7d988e92fd5797094d2310e Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 23 May 1997 09:43:04 +0000 Subject: [PATCH] lilypond-0.1.22 --- bin/find-typenames.pl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 bin/find-typenames.pl diff --git a/bin/find-typenames.pl b/bin/find-typenames.pl new file mode 100644 index 0000000000..e08fd00800 --- /dev/null +++ b/bin/find-typenames.pl @@ -0,0 +1,20 @@ +#!/usr/bin/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; -- 2.39.5