2 # stuff should be generated in out directory.
7 s#href=([A-Za-z.]+)#href=$base/$1#g;
14 print "resetting refs.\n";
25 local $base="lilypond/";
26 local @examples=("wohltemperirt" ,"standchen", "scsii-menuetto", "rhythm", "collisions");
31 print "generating HTML\n";
32 system "make -kC .. html";
37 print "generating examples: \n";
38 foreach $a (@examples) {
40 $tex = "tex $texfile";
41 if ($a eq "standchen" || $a eq "scsii-menuetto" ) {
46 if ( ! -f "$a.ly.txt" ) {
47 system "ln $depth/input/$a.ly ./$a.ly.txt";
49 if ( ! -f "$a.ps.gz" ) {
50 system "lilypond $a;$tex;".
51 "dvips -o $a.ps $texfile;";
54 # generate the pixmap at twice the size, then rescale (for antialiasing)
55 if ( ! -f "$a.gif" ) {
56 system "mv lelie.midi $a.midi; ";
57 system "gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE $a.ps -c quit |pnmscale 0.5| ppmtogif > $a.gif";
66 print "generating HTML list\n";
67 open HTMLLIST, ">example_output.html";
68 print HTMLLIST "<title>LilyPond examples</title>\n";
69 foreach $a (@examples) {
71 print HTMLLIST "<h1>example file: $name</h1>\n<XMP>\n";
72 $cmd= "head $depth/input/$a.ly | grep \^% \| sed \"s/^%/ /\"";
74 print HTMLLIST "$desc\n</XMP>";
82 <li><a href=$inputf> The input file</a>
83 <li><a href=$giff>The output (gif)</a>
84 <li><a href=$psf>The output (PS)</a>\n";
86 print HTMLLIST "<li><a href=$midif>The output (MIDI)</a>\n"
88 print HTMLLIST "</ul>";
94 print "copying files\n";
95 print `ln -s $depth/out ./docxx` if ( ! -x "docxx" ) ;
96 system "cp $depth/TODO ./TODO.txt";
97 system "cp $depth/NEWS ./NEWS.txt";
98 system "cp ../lelie*gif .";
103 system "make -C $depth doc++";
110 system " tar vhcf website.tar *.html *.gif *.ps.gz *.ly.txt *.midi docxx/*;";
111 system "gzip -f9 website.tar;";
115 $ENV{"TEXINPUTS"} .= ":$depth/input/:";
116 $ENV{"LILYINCLUDE"} = "$depth/input/";
120 die "need to be in directory Documentation\n" if ( ! ($cwd =~ /Documentation$/));