3 # Setup TeX/LaTeX Ghostscript C-shell environment for LilyPond.
5 # Red Hat-like systems should install this in /etc/profile.d/
7 # If run by hand or from you .login, run as follows
8 # source lilypond-profile
12 # strange shell, this C
13 set datadir="@datadir@"
16 setenv GS_LIB "$datadir/ps:$GS_LIB"
18 setenv GS_LIB "$datadir/ps"
22 # setenv LILYPONDPREFIX "$datadir"
24 # bit silly. for ly2dvi, overrules compiled-in datadir...
25 # setenv LILYPONDPREFIX "@datadir@"
27 # Add the installation directory to the teTeX system tree,
28 # see Documentation/misc/fontinstallation
31 setenv TEXMF "{$datadir,"`kpsexpand \$TEXMF`"}"
34 # Add all available TeX Type1 fonts (including Feta) to Ghostscript:
35 if ( $?GS_FONTPATH ) then
36 setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`:$GS_FONTPATH"
38 setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`