1 #!/usr/bin/bash
  2 rm -r $1
  3 cd example
  4 cp *.ly ../
  5 cd ../major
  6 cp *.ly ../
  7 cd ../clef
  8 cp *.ly ../
  9 cd ../
 10 mkdir $1
 11 lilypond -E h-example-1.ly
 12 lilypond --svg h-example-1.ly
 13 ## ------------------------------------
 14 lilypond -E h-example-2.ly
 15 lilypond --svg h-example-2.ly
 16 ## ------------------------------------
 17 lilypond -E add-example-2.ly
 18 lilypond --svg add-example-2.ly
 19 ## ------------------------------------
 20 lilypond -E example-3.ly
 21 lilypond --svg example-3.ly
 22 ## ------------------------------------
 23 lilypond -E pompei4.ly
 24 lilypond --svg pompei4.ly
 25 ## ------------------------------------
 26 lilypond -E example-4.ly
 27 lilypond --svg example-4.ly
 28 ## ------------------------------------
 29 lilypond -E example-5.ly
 30 lilypond --svg example-5.ly
 31 ## ------------------------------------
 32 lilypond -E example-6.ly
 33 lilypond --svg example-6.ly
 34 ## ------------------------------------
 35 lilypond -E example-6b.ly
 36 lilypond --svg example-6b.ly
 37 ## ------------------------------------
 38 lilypond -E example-7.ly
 39 lilypond --svg example-7.ly
 40 ## ------------------------------------
 41 ## ------------------------------------
 42 lilypond -E c-major.ly
 43 lilypond --svg c-major.ly
 44 ## ------------------------------------
 45 lilypond -E c-major2.ly
 46 lilypond --svg c-major2.ly
 47 ## ------------------------------------
 48 lilypond -E pg-major.ly
 49 lilypond --svg g-major.ly
 50 ## ------------------------------------
 51 lilypond -E pd-major.ly
 52 lilypond --svg d-major.ly
 53 ## ------------------------------------
 54 lilypond -E pa-major.ly
 55 lilypond --svg a-major.ly
 56 ## ------------------------------------
 57 lilypond -E pe-major.ly
 58 lilypond --svg e-major.ly
 59 ## ------------------------------------
 60 lilypond -E pb-major.ly
 61 lilypond --svg b-major.ly
 62 ## ------------------------------------
 63 lilypond -E pfis-major.ly
 64 lilypond --svg fis-major.ly
 65 ## ------------------------------------
 66 lilypond -E pcis-major.ly
 67 lilypond --svg cis-major.ly
 68 ## ------------------------------------
 69 lilypond -E pf-major.ly
 70 lilypond --svg f-major.ly
 71 ## ------------------------------------
 72 lilypond -E pbes-major.ly
 73 lilypond --svg bes-major.ly
 74 ## ------------------------------------
 75 lilypond -E pees-major.ly
 76 lilypond --svg ees-major.ly
 77 ## ------------------------------------
 78 lilypond -E paes-major.ly
 79 lilypond --svg aes-major.ly
 80 ## ------------------------------------
 81 lilypond -E pdes-major.ly
 82 lilypond --svg des-major.ly
 83 ## ------------------------------------
 84 lilypond -E pges-major.ly
 85 lilypond --svg ges-major.ly
 86 ## ------------------------------------
 87 lilypond -E pces-major.ly
 88 lilypond --svg ces-major.ly
 89 ## ------------------------------------
 90 ## ------------------------------------
 91 lilypond --svg clef-ces.ly
 92 ## ------------------------------------
 93 ## ------------------------------------
 94 lilypond --svg clef-g.ly
 95 ## ------------------------------------
 96 lilypond --svg clef-d.ly
 97 ## ------------------------------------
 98 lilypond --svg clef-a.ly
 99 ## ------------------------------------
100 lilypond --svg clef-e.ly
101 ## ------------------------------------
102 lilypond --svg clef-b.ly
103 ## ------------------------------------
104 lilypond --svg clef-fis.ly
105 ## ------------------------------------
106 lilypond --svg clef-cis.ly
107 ## ------------------------------------
108 lilypond --svg clef-f.ly
109 ## ------------------------------------
110 lilypond --svg clef-bes.ly
111 ## ------------------------------------
112 lilypond --svg clef-ees.ly
113 ## ------------------------------------
114 lilypond --svg clef-aes.ly
115 ## ------------------------------------
116 lilypond --svg clef-des.ly
117 ## ------------------------------------
118 lilypond --svg clef-ges.ly
119 ## ------------------------------------
120 lilypond --svg clef-ces.ly
121 ## ------------------------------------
122 lilypond --svg symbol.ly
123 ## ------------------------------------
124 lilypond --svg soprano.ly
125 ## ------------------------------------
126 tex $1.texi
127 dvips -P pdf $1.dvi
128 ps2pdf $1.ps
129 mv $1.pdf $1/
130 rm example-6-2.svg example-6-3.svg
131 rm example-6b-2.svg example-6b-3.svg
132 rm example-8-page-2.png
133 mv *.svg $1/
134 mv *.midi $1/
135 mv *.png $1/
136 makeinfo --no-split --force --html $1.texi
137 mv $1.html $1/
138 cd $1
139 explorer.exe $1.html | xdg-open $1.pdf
140 cd ../
141 rm *.dvi *.ps *.eps *.pdf *.mid *.log *.ly
142 ls -lX