]> git.donarmstrong.com Git - lilypond.git/blobdiff - buildscripts/lilypond-login.sh
''
[lilypond.git] / buildscripts / lilypond-login.sh
old mode 100755 (executable)
new mode 100644 (file)
index d7e8e97..9e7278f
@@ -1,28 +1,41 @@
 #!/bin/csh
 
-# env. vars for the C-shell.
+# Setup TeX/LaTeX Ghostscript C-shell environment for LilyPond.
+# 
+# Red Hat-like systems should install this in /etc/profile.d/
+
+# If run by hand or from you .login, run as follows
+#   source lilypond-profile
+
+
+
+# strange shell, this C
+set datadir="@datadir@"
+
+ if ( $?GS_LIB ) then
+       setenv GS_LIB "$datadir/ps:$GS_LIB"
+ else
+       setenv GS_LIB "$datadir/ps"
+ endif
+
+
+# setenv LILYPONDPREFIX "$datadir"
 
-# set environment for LilyPond.  To be installed in /etc/profile.d/
-setenv GS_LIB "@datadir@/ps"
-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.
-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 ($?GUILE_LOAD_PATH) then
-        setenv GUILE_LOAD_PATH "/usr/share/lilypond/scm:${GUILE_LOAD_PATH}"
-else
-        setenv GUILE_LOAD_PATH "/usr/share/lilypond/scm"
-endif
+# setenv LILYPONDPREFIX "@datadir@"
+
+# Add the installation directory to the teTeX system tree, 
+# see Documentation/misc/fontinstallation
+
+set noglob
+setenv TEXMF "{$datadir,"`kpsexpand  \$TEXMF`"}"
+unset noglob
+
+# Add all available TeX Type1 fonts (including Feta) to Ghostscript:
+if ( $?GS_FONTPATH ) then
+       setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`:$GS_FONTPATH"
+ else
+       setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`
+ endif