bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1236 in lilypond: CG+scripts should use $LILYPOND_GIT


From: lilypond
Subject: Re: Issue 1236 in lilypond: CG+scripts should use $LILYPOND_GIT
Date: Wed, 02 Nov 2011 12:14:25 +0000


Comment #3 on issue 1236 by address@hidden: 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]