Add usage message to build.sh

This commit is contained in:
Andrew Miner
2017-06-02 08:14:32 -07:00
parent 0556c73fb4
commit a76a411b8c
2 changed files with 23 additions and 36 deletions
+11 -3
View File
@@ -1,9 +1,17 @@
#!/bin/bash #!/bin/bash
# Constants ############################################################################################################
read -d  USAGE <<-END
USAGE: $0 <clean|compile|watch|help> (--view)
END
# Helper Functions ##################################################################################################### # Helper Functions #####################################################################################################
function cancel { function cancel {
# TODO(aminer): implement usage
echo
echo $@
exit 0 exit 0
} }
@@ -20,7 +28,7 @@ function compile-ly {
} }
function usage { function usage {
# TODO(aminer): implement echo "$USAGE"
exit 0 exit 0
} }
@@ -55,7 +63,7 @@ function command-watch {
COMMAND="$1" COMMAND="$1"
shift shift
[[ "$COMMAND" == "" ]] && COMMAND="compile" [[ "$COMMAND" == "" ]] && COMMAND="help"
PATTERNS=() PATTERNS=()
VIEW="NO" VIEW="NO"
+12 -33
View File
@@ -22,41 +22,17 @@ global = {
melody = \relative c' { melody = \relative c' {
\global \global
\dynamicUp \dynamicUp
r4 r f8. ( d16 ) r2 f8. ( d16 ) | bf4 d f | bf2 d8. c16 | bf4 d, e |
bf4 d f f2 f8 f | d'4. c8 bf4 | a2 g8 a | bf4 bf f |
bf2 d8. c16
bf4 d, e
f2 f8 f
d'4. c8 bf4
a2 g8 a
bf4 bf f
\set melismaBusyProperties = #'() \set melismaBusyProperties = #'()
d bf f'8. ( d16 ) d bf f'8. ( d16 )
\unset melismaBusyProperties \unset melismaBusyProperties
bf4 d f bf4 d f | bf2 d8. c16 | bf4 d, e | f2 f8 f |
bf2 d8. c16 d'4. c8 bf4 | a2 g8 a | bf4 bf f | d bf d'8 d |
bf4 d, e d4 ef f | f2 ef8 d | c4 d ef | ef2 ef4 |
f2 f8 f d4. c8 bf4 | a2 g8 a | bf4 d, e | f2 f4 |
d'4. c8 bf4 bf4 bf bf8 ( a ) | g4 g g | c4 ef8 ( d ) c ( bf ) | bf4 ( a ) \fermata f8 f |
a2 g8 a bf4. ( c8 ) d ef | f2 bf,8 c | d4. ef8 c4 | bf2. |
bf4 bf f
d bf d'8 d
d4 ef f
f2 ef8 d
c4 d ef
ef2 ef4
d4. c8 bf4
a2 g8 a
bf4 d, e
f2 f4
bf4 bf bf8 ( a )
g4 g g
c4 ef8 ( d ) c ( bf )
bf4 ( a ) \fermata f8 f
bf4. ( c8 ) d ef
f2 bf,8 c
d4. ef8 c4
bf2.
} }
words = \lyricmode { words = \lyricmode {
@@ -80,7 +56,10 @@ words = \lyricmode {
\naturalizeMusic \naturalizeMusic
\transpose c d \transpose c d
\melody \melody
\addlyrics { \words } \addlyrics {
\set fontSize = #-2
\words
}
} }
>> >>
\layout { \layout {