]> git.donarmstrong.com Git - lilypond.git/commitdiff
Update instructions for OSX command-line use.
authorGraham Percival <graham@percival-music.ca>
Sun, 7 Jan 2007 19:47:23 +0000 (11:47 -0800)
committerGraham Percival <graham@percival-music.ca>
Sun, 7 Jan 2007 19:47:23 +0000 (11:47 -0800)
Documentation/user/running.itely

index f4cbfdd3263765a292b297e1fcdeca0fad8bf4bb..d1a95e8e0c2cd31635f2370dcc71caa074409dc2 100644 (file)
@@ -363,11 +363,36 @@ invoking them directly, e.g.
 The same is true of the other scripts in that directory, including
 lilypond-book, convert-ly, abc2ly, etc.
 
-Alternatively, you may add this directory to your path.  Modify (or create)
+Alternatively, you may create scripts which add the path
+automatically.  Create a directory to store these scripts,
+
+@example
+mkdir -p ~/bin
+cd ~/bin
+@end example
+
+Create a file called @code{lilypond} which contains
+
+@example
+exec @var{path/to}/LilyPond.app/Contents/Resources/bin/lilypond "$@"
+@end example
+
+Create similar files @code{lilypond-book}, @code{convert-ly}, and
+any other helper programs you use (@code{abc2ly}, @code{midi2ly},
+etc).  Simply replace the @code{bin/lilypond} with
+@code{bin/convert-ly} (or other program name) in the above file.
+
+Make the file executable,
+
+@example
+chmod u+x lilypond
+@end example
+
+Now, add this directory to your path.  Modify (or create)
 a file called @code{.profile} in your home directory such that it contains
 
 @example
-export PATH=$PATH:@var{path/to}/LilyPond.app/Contents/Resources/bin
+export PATH=$PATH:~/bin
 @end example
 
 @noindent