]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/lilypond-login.sh
release: 1.3.136
[lilypond.git] / buildscripts / lilypond-login.sh
old mode 100644 (file)
new mode 100755 (executable)
index d4a482e..38fb855
@@ -1,13 +1,29 @@
 #!/bin/csh
 
 # env. vars for the C-shell.
-
 # set environment for LilyPond.  To be installed in /etc/profile.d/
-setenv GS_LIB "@datadir@/afm"
-setenv GS_FONTPATH "@datadir@/ps"
-setenv LILYINCLUDE "@datadir@/ly:@datadir@/afm"
+
+setenv GS_FONTPATH "@datadir@/afm"
+
+# bit silly. for ly2dvi, overrules compiled-in datadir...
+setenv LILYPONDPREFIX "@datadir@"
 
 # include an empty path component for the system wide includes.
-setenv MFINPUTS "@datadir@/mf:"${MFINPUTS:=":"}
-setenv TEXINPUTS "@datadir@/tex:"${TEXINPUTS:=":"}
+if ($?MFINPUTS) then
+        setenv MFINPUTS "/usr/share/lilypond/mf:${MFINPUTS}::"
+else
+        setenv MFINPUTS "/usr/share/lilypond/mf::"
+endif
+if ($?TEXINPUTS) then
+        setenv TEXINPUTS "/usr/share/lilypond/tex:${TEXINPUTS}::"
+else
+        setenv TEXINPUTS "/usr/share/lilypond/tex::"
+endif
+if ($?TEXINPUTS) then
+        setenv TFMFONTS "@datadir@/tfm:$TFMFONTS"
+else
+        setenv TFMFONTS "@datadir@/tfm:"
+endif
+
+