buildscripts/lilypond-login.sh: Only set $TEXMF if necessary.
Thanks to Reuben Thomas <rrt@mupsych.org>
+2003-12-03 Mats Bengtsson <mabe@drongo.s3.kth.se>
+
+ * buildscripts/lilypond-profile.sh,
+ buildscripts/lilypond-login.sh: Only set $TEXMF if necessary.
+ Thanks to Reuben Thomas <rrt@mupsych.org>
+
2003-12-03 Heikki Junes <hjunes@cc.hut.fi>
* ly/italiano.ly: additions for semi-sharps and semi-flats by Eric
José Luis Cruz
Thomas Willhalm
Eric Wurbel
+Reuben Thomas
Release 2.0
***********
# 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
# Add the installation directory to the teTeX system tree,
# see Documentation/misc/fontinstallation
- TEXMF="{$datadir,"`kpsexpand \\$TEXMF`"}"
- export TEXMF
+ if [ -z `echo $TEXMF | grep "$datadir"` ]; then
+ TEXMF="{$datadir,"`kpsexpand \\$TEXMF`"}"
+ export TEXMF
+ fi
+
# For direct ps output: ps/lilyponddefs.ps
## GS_LIB="$datadir/ps:"${GS_LIB:=""}