1 #!/usr/bin/bash 2 rm -r html 3 lilypond --pdf $1.ly 4 mkdir html 5 mv $1.pdf html/ 6 lilypond --eps $1.ly 7 # lilypond --svg $1.ly 8 latex $1-sheet.latex 9 dvips -t letterpaper -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 *.png html/ 14 # mv *.svg html/ 15 mv *.midi html/ 16 cp refer/*.html html/ 17 cd html 18 # xdg-open $1-sheet.pdf | xdg-open $1.midi | explorer.exe $1-sheet.html 19 xdg-open $1.midi | explorer.exe $1-sheet.html 20 cd ../ 21 rm *.aux *.log *.dvi *.ps *.eps 22 ls -lX 23 24