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 gs -sDEVICE=png16m -r120 -sOutputFile=$1-sheet-page%d.png -dNOPAUSE $1-sheet.ps -c quit
11 ps2pdf $1-sheet.ps
12 mv $1-sheet.pdf html/
13 mv $1-sheet-page*.png html/
14 mv *.svg html/
15 mv *.midi html/
16 cp refer/*.html html/
17 cd html
18 xdg-open $1-sheet.pdf | explorer.exe $1-sheet.html
19 cd ../
20 rm *.count *.aux *.log *.tex *.texi *.ps
21 rm *.dvi *.eps *.png *.pdf
22 ls -la
23