]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-login.sh
9e7278f6817ef07bf83fc821320295acb04721cd
[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 # If run by hand or from you .login, run as follows
8 #   source lilypond-profile
9
10
11
12 # strange shell, this C
13 set datadir="@datadir@"
14
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 # Add the installation directory to the teTeX system tree, 
28 # see Documentation/misc/fontinstallation
29
30 set noglob
31 setenv TEXMF "{$datadir,"`kpsexpand  \$TEXMF`"}"
32 unset noglob
33
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"
37  else
38        setenv GS_FONTPATH `kpsewhich -expand-path=\$T1FONTS`
39  endif
40
41