1 #!/usr/bin/bash
 2 rm -r html
 3 lilypond --pdf --png $1.ly
 4 mkdir html
 5 mv $1.pdf html/
 6 lilypond -dbackend=svg $1.ly
 7 lilypond -dbackend=eps $1.ly
 8 latex $1-sheet.latex
 9 dvips -t letter -P pdf $1-sheet.dvi
10 ps2pdf $1-sheet.ps
11 mv $1-sheet.pdf html/
12 mv *.svg html/
13 mv *.midi html/
14 cp refer/*.html html/
15 cd html
16 xdg-open $1-sheet.pdf | explorer.exe $1-sheet.html
17 cd ../
18 rm *.count *.aux *.log *.tex *.texi *.ps
19 rm *.dvi *.eps *.png *.pdf
20 ls -la
21