]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/lilypond-login.sh
* scm/music-functions.scm (determine-split-list): bugfix: only use
[lilypond.git] / buildscripts / lilypond-login.sh
index f272e67619668b96f923ed114be0d5ffdac5542f..65952f21d0d0db63ce9747422ff422f56ef6120c 100644 (file)
@@ -19,9 +19,13 @@ set datadir="@local_lilypond_datadir@"
 # Add the installation directory to the teTeX system tree, 
 # see Documentation/misc/fontinstallation
 
-set noglob
-setenv TEXMF "{$datadir,"`kpsexpand  \$TEXMF`"}"
-unset noglob
+set alreadyset = `echo $TEXMF | grep "$datadir"`
+if ( "$alreadyset" == "" ) then
+    set noglob
+    setenv TEXMF "{$datadir,"`kpsexpand  \$TEXMF`"}"
+    unset noglob
+endif
+unset alreadyset