release commit
[lilypond.git] / buildscripts / lilypond-login.sh
blobd0c0377945429cfe4d90df784855808a7bac05b6
1 #!/bin/csh
3 # Setup TeX/LaTeX Ghostscript C-shell environment for LilyPond.
4 #
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
24 set noglob
25 setenv TEXMF "{$datadir,"`kpsexpand \$TEXMF`"}"
26 unset noglob
27 endif
28 unset alreadyset
32 # if ( $?GS_LIB ) then
33 # setenv GS_LIB "$datadir/ps:$GS_LIB"
34 # else
35 # setenv GS_LIB "$datadir/ps"
36 # endif
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
43 #else
44 # setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`
45 #endif