]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-login.sh
release: 1.5.0
[lilypond.git] / buildscripts / lilypond-login.sh
1 #!/bin/csh
2
3 # Setup TeX/LaTeX Ghostscript C-shell environment for LilyPond.
4
5 # Red Hat-like systems should install this in /etc/profile.d/
6
7 # strange shell, this C
8 set datadir="@datadir@"
9
10 if ( $?GS_FONTPATH ) then
11        setenv GS_FONTPATH "$datadir/afm:/usr/share/lilypond/pfa:$GS_FONTPATH"
12  else
13        setenv GS_FONTPATH "$datadir/afm:/usr/share/lilypond/pfa"
14  endif
15  if ( $?GS_LIB ) then
16        setenv GS_LIB "$datadir/ps:$GS_LIB"
17  else
18        setenv GS_LIB "$datadir/ps"
19  endif
20
21
22 # setenv LILYPONDPREFIX "$datadir"
23
24 # bit silly. for ly2dvi, overrules compiled-in datadir...
25 # setenv LILYPONDPREFIX "@datadir@"
26
27 # include an empty path component for the system wide includes.
28 if ($?MFINPUTS) then
29         setenv MFINPUTS "$datadir/mf:${MFINPUTS}::"
30 else
31         setenv MFINPUTS "$datadir/mf::"
32 endif
33 if ($?TEXINPUTS) then
34         setenv TEXINPUTS "$datadir/tex:${TEXINPUTS}::"
35 else
36         setenv TEXINPUTS "$datadir/tex::"
37 endif
38 if ($?TFMFONTS) then
39         setenv TFMFONTS "$datadir/tfm:$TFMFONTS"
40 else
41         setenv TFMFONTS "$datadir/tfm:"
42 endif
43
44
45