3 # generate the standard header of a LilyPond source file.
9 $MAILADRESS=$ENV{MAILADRESS
};
13 die "arg needed\n" if (!($#ARGV+1));
16 $hh_b = ($fn =~ /hh$/ );
17 $inc_b= ($hh_b || $fn =~ /[ti]cc$/);
24 my $what="implement ";
25 $what = "declare " if ($hh_b);
27 $PROJECT = "the GNU LilyPond music typesetter";
30 $PROJECT= "the Flower Library" if ($cwd =~ /flower/);
35 source file of $PROJECT
37 (c) 1997 $username <$MAILADRESS>
45 $startdef =~ s/[\.-]/_/g;
46 $startdef =~ tr/a-z/A-Z/;
47 my $terminatestr="\n";
50 $headstr = "\n\n#ifndef $startdef\n#define $startdef\n";
51 $terminatestr .= "#endif // $startdef\n"
54 print $headstr, $terminatestr;