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="@local_lilypond_datadir@"
15 # setenv LILYPONDPREFIX "$datadir"
16 # bit silly. for lilypond, overrules compiled-in datadir...
17 # setenv LILYPONDPREFIX "@local_lilypond_datadir@"
19 # Add the installation directory to the teTeX system tree,
20 # see Documentation/misc/fontinstallation
22 set alreadyset = `kpsexpand \$TEXMF | grep "$datadir"`
23 if ( "$alreadyset" == "" ) then
25 setenv TEXMF "{$datadir,"`kpsexpand \$TEXMF`"}"
32 # if ( $?GS_LIB ) then
33 # setenv GS_LIB "$datadir/ps:$GS_LIB"
35 # setenv GS_LIB "$datadir/ps"
40 # Add all available TeX Type1 fonts (including Feta) to Ghostscript:
41 #if ( $?GS_FONTPATH ) then
42 # setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`:$GS_FONTPATH
44 # setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`