6 # do something, check return status
10 foreach $cmd (@cmds) {
11 my $ret = ( system ($cmd))/256;
13 print STDERR "\nmake_website: failed on command \`$cmd\' (status $ret)\n";
22 s#href=([A-Za-z.]+)#href=$base/$1#g;
29 print "resetting refs.\n";
40 local $base="lilypond/";
41 local @examples=("wohltemperirt" ,"standchen", "scsii-menuetto", "rhythm", "collisions");
46 print "generating HTML\n";
47 my_system "make -kC .. html";
52 print "generating examples: \n";
53 foreach $a (@examples) {
55 $tex = "tex $texfile";
56 if ($a eq "standchen" || $a eq "scsii-menuetto" ) {
61 if ( ! -f "$a.ly.txt" ) {
62 my_system "ln $depth/input/$a.ly ./$a.ly.txt";
64 if ( ! -f "$a.ps.gz" ) {
65 my_system "lilypond $a;",
67 "dvips -o $a.ps $texfile;";
71 my_system "mv lelie.midi $a.midi; " if ( -f "lelie.midi" );
73 # generate the pixmap at twice the size, then rescale (for antialiasing)
74 if ( ! -f "$a.gif" ) {
75 my_system "gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE $a.ps -c quit |pnmscale 0.5| ppmtogif > $a.gif",
84 print "generating HTML list\n";
85 open HTMLLIST, ">example_output.html";
86 print HTMLLIST "<title>LilyPond examples</title>\n";
87 foreach $a (@examples) {
89 print HTMLLIST "<h1>example file: $name</h1>\n<XMP>\n";
91 open IF, "$depth/input/$a.ly";
92 input_record_separator IF "%}";
97 print HTMLLIST "$desc\n</XMP>";
105 <li><a href=$inputf> The input file</a>
106 <li><a href=$giff>The output (gif)</a>
107 <li><a href=$psf>The output (PS)</a>\n";
109 print HTMLLIST "<li><a href=$midif>The output (MIDI)</a>\n"
111 print HTMLLIST "</ul>";
117 print "copying files\n";
118 print `ln -s $depth/out ./docxx` if ( ! -x "docxx" ) ;
119 my_system "cp $depth/TODO ./TODO.txt",
120 "cp $depth/NEWS ./NEWS.txt",
126 my_system "make -C $depth doc++";
134 " tar vhcf website.tar *.html *.gif *.ps.gz *.ly.txt *.midi docxx/*;",
135 "gzip -f9 website.tar;";
139 $ENV{"TEXINPUTS"} .= ":$depth/input/:";
140 $ENV{"LILYINCLUDE"} = "$depth/input/";
144 die "need to be in directory Documentation\n" if ( ! ($cwd =~ /Documentation$/));