]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-login.sh
patch::: 1.5.41.mb1: Re: New font installation idea
[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_FONTPATH ) then
16        setenv GS_FONTPATH "$datadir/fonts/afm:$datadir/fonts/type1:$GS_FONTPATH"
17  else
18        setenv GS_FONTPATH "$datadir/fonts/afm:$datadir/fonts/type1"
19  endif
20  if ( $?GS_LIB ) then
21        setenv GS_LIB "$datadir/ps:$GS_LIB"
22  else
23        setenv GS_LIB "$datadir/ps"
24  endif
25
26
27 # setenv LILYPONDPREFIX "$datadir"
28
29 # bit silly. for ly2dvi, overrules compiled-in datadir...
30 # setenv LILYPONDPREFIX "@datadir@"
31
32 # Add the installation directory to the teTeX system tree, 
33 # see Documentation/misc/fontinstallation
34
35 set noglob
36 setenv TEXMF "{$datadir,"`kpsexpand  \$TEXMF`"}"
37 unset noglob
38
39
40