From a5c810c73c20077058b59a99bb0cc55209f7409e Mon Sep 17 00:00:00 2001 From: fred Date: Wed, 12 Feb 1997 23:10:15 +0000 Subject: [PATCH] lilypond-0.0.31 --- Documentation/make_website | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 Documentation/make_website diff --git a/Documentation/make_website b/Documentation/make_website new file mode 100755 index 0000000000..d241527ff1 --- /dev/null +++ b/Documentation/make_website @@ -0,0 +1,33 @@ +#!/usr/bin/perl -w +sub + set_hrefs +{ + while () { + s#href=([A-Za-z.]+)#href=$base/$1#g; + print HTMLOUT $_; + } +} + +local $base="lilypond/"; +local @examples=("wohltemperirt"); + +system 'make html'; + +print "resetting refs.\n"; + +foreach $a (<*.html>) +{ + rename $a, "$a~"; + open HTMLIN, "$a~"; + open HTMLOUT, ">$a"; + set_hrefs; +} + +foreach $a (@examples) { + $texfile="test"; + system "cd ..; lilypond input/$a; tex $texfile; dvips $texfile;"; + system "mv ../$texfile.ps $a.ps"; + system "gs -q -sDEVICE=ppmraw -sOutputFile=- -r200 -dNOPAUSE $a.ps -c quit |pnmscale 0.5| ppmtogif > $a.gif" +} + +system "tar cfz website.tgz *.html *.gif *.png *.ps " -- 2.39.5