#!/usr/bin/bash
rm -r html
rm -r folktales-midi
cp refer/*.* ./
lilypond --png $1.ly
lilypond --svg $1.ly
lilypond --eps $1.ly
makeinfo --no-split --force --html $1.texi
mkdir html
mkdir folktales-midi
mv *.svg html/
mv *.pdf html/
mv $1-page1.png html/
mv *.midi folktales-midi/
mv *.html html/
cp $1-page1.png html/
latex $1-sheet.latex
dvips -t letterpaper -P pdf $1-sheet.dvi
ps2pdf $1-sheet.ps
mv $1-sheet.pdf html/
cp refer/*.html html/
cd html
xdg-open $1.html | xdg-open $1-sheet.pdf | xdg-open ../folktales-midi/$1-1.midi
cd ../
rm *.ly *.ily *.texi *.latex *.aux *.log *.dvi *.ps *.eps *.png *.midi
ls -lX


