#!@PERL@ -w
-# stupid script to generate WWW site.
+# stupid script to generate WWW site. -*-Perl-*-
use FileHandle;
use Getopt::Long;
my $lily_version;
my $footstr;
my $mw_id = "<!make_website!>";
-my $id_str = "make-website 0.3";
+my $id_str = "make-website 0.4";
my $TAR="tar";
my $MAKE="make";
my $username=$pw[6];
$footstr =
- "\n<hr>Please take me <a href=index.html>back to the index</a>\n<hr>
+ "\n<hr>Please take me <a href=index.html>back to the LilyPond index</a>\n<hr>
<font size=-1>
-This page was generated by <code>" . $id_str . "</code> from lilypond-$lily_version by
+This page was built using <code>" . $id_str . "</code> from lilypond-$lily_version by
<p>
<address><br>$username <a href=mailto:$MAILADRESS><<!bla>$MAILADRESS</a>></address>
-<p>" . `date` . "
<p></font>";
}
local $base="lilypond/";
local @examples=("twinkle", "multi", "wohltemperirt" ,"standchen", "toccata-fuga-E",
- "scsii-menuetto", "collisions", "cadenza", "scales");
+ "scsii-menuetto", "collisions", "cadenza", "scales", "twinkle-pop");
# rhythm, scales,
{
print "generating TeX doco list\n";
open HTMLLIST, ">tex_manuals.html";
- print HTMLLIST "<HTML><TITLE>LilyPond manuals</title>\n" ;
+ print HTMLLIST "<HTML><TITLE>PostScript Manuals</TITLE>\n" ;
print HTMLLIST "<BODY><h1>LilyPond manuals (in PostScript)</h1>";
print HTMLLIST "<ul>\n";
my @todo=();
{
print "generating HTML list\n";
open HTMLLIST, ">example_output.html";
- print HTMLLIST "<html><body><title>LilyPond examples</title>\n
+ print HTMLLIST "<html><body><TITLE>Rendered Examples</TITLE>\n
These example files are taken from the LilyPond distribution.\n
LilyPond currently only outputs TeX and MIDI. The pictures and\n
PostScript files were generated using TeX, Ghostscript and some graphics tools. \n
$subst .= $back if (! $a =~ /index.html/ );
$file =~ s/$sep/$subst$sep/g ;
$file =~ s/\.gif/\.$image/g;
+ $file =~ s!<TITLE>(.*)</TITLE>!<TITLE>LilyPond WWW: $1</TITLE>!g;
open H, ">$a";
print H $mw_id;
+
print H $file;
close H;
}
sub copy_files
{
print "copying files\n";
- print `ln -s $depth/out ./docxx` if ( ! -x "docxx" ) ;
+ my_system "ln -s $depth/out ./docxx" if ( ! -x "docxx" ) ;
my_system "cp $depth/TODO ./TODO.txt",
"cp $depth/ANNOUNCE ./ANNOUNCE.txt",
"cp $depth/NEWS ./NEWS.txt",
sub docxx_update
{
- my_system "$MAKE -C $depth doc++";
+ open BANNER, ">/tmp/lilybanner.html";
+ my $ban = $footstr;
+ $ban =~ s!index.html!../index.html!g;
+ print BANNER $ban;
+ close BANNER;
+ my_system "$MAKE -C $depth docxx-opts=\"-p -S -k -B /tmp/lilybanner.html\" doc++";
+ # should add a cute header.
}
sub do_tar
if (! $opt_noexamples) {
gen_examples;
gen_list;
+ gen_manuals;
}
- gen_manuals;
set_images;
edit_html;