2 # stuff should be generated in out directory.
8 s#href=([A-Za-z.]+)#href=$base/$1#g;
15 print "resetting refs.\n";
26 local $base="lilypond/";
27 local @examples=("wohltemperirt" ,"standchen", "scsii-menuetto");
33 print "generating HTML";
34 foreach $a (<*.pod>) {
38 system "pod2html $a" if ( ! -f $f ) ;
45 print "generating examples: ";
46 foreach $a (@examples) {
49 $tex = "tex $texfile";
50 if ($a eq "standchen" || $a eq "scsii-menuetto") {
51 $tex = "latex input/$a";
54 if ( ! -f "$a.ly.txt" ) {
55 system "ln ../input/$a.ly ./$a.ly.txt";
57 if ( ! -f "$a.ps.gz" ) {
58 system "cd ..; lilypond input/$a;$tex;".
59 "dvips -o $a.ps $texfile;";
61 # generate the pixmap at twice the size, then rescale (for antialiasing)
62 if ( ! -f "$a.gif" ) {
63 system "mv ../$a.ps $a.ps; ".
64 "mv ../lelie.midi ../$a.midi $a.midi; ".
65 "gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE $a.ps -c quit |pnmscale 0.5| ppmtogif > $a.gif";
75 open HTMLLIST, ">example_output.html";
76 print HTMLLIST "<title>LilyPond examples</title>\n";
77 foreach $a (@examples) {
79 print HTMLLIST "<h1>example file: $name</h1>\n<XMP>\n";
80 $cmd= "head ../input/$a.ly | grep \^% \| sed \"s/^%/ /\"";
82 print HTMLLIST "$desc\n</XMP>";
90 <li><a href=$inputf> The input file</a>
91 <li><a href=$giff>The output (gif)</a>
92 <li><a href=$psf>The output (PS)</a>
93 <li><a href=$midif>The output (MIDI)</a>
100 print `ln -s ../out ./docxx` if ( ! -x "docxx" ) ;
101 system "cp ../TODO ./TODO.txt";
102 system "cp ../NEWS ./NEWS.txt";
108 system " tar hcf website.tar *.html *.gif lelie_logo.png *.ps.gz *.ly.txt *.midi docxx/*;" .
109 "gzip -f9 website.tar;" if ( ! -f "website.tar" ) ;