Comment #3 on issue 1236 by adam.spi...@gmail.com: CG+scripts should use $LILYPOND_GIT
http://code.google.com/p/lilypond/issues/detail?id=1236

For a shell script such as doc-section.sh, auto-detection is as simple as:

cd "`dirname $0`"
cd ../..
LILYPOND_GIT="`pwd`"

Obviously auto-detection is preferably from a usability standpoint, but if other non-shell executables or processes cannot do auto-detection then I agree an environment variable would be far preferable to hard-coding it. But where auto-detection *can* occur, is there any reason not to prefer it to using the environment variable? The only reasons I can imagine they would yield different answers is (a) due to symlinked directories, or (b) the environment variable was set wrong. In the (a) case it wouldn't matter because the two paths would still point to the same place even if they looked different.


_______________________________________________
bug-lilypond mailing list
bug-lilypond@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to