]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-profile.sh
release: 1.4.0
[lilypond.git] / buildscripts / lilypond-profile.sh
1 #!/bin/sh
2
3 # Setup TeX/LaTeX Ghostscript environment for LilyPond.
4
5 # Red Hat-like systems should install this in /etc/profile.d/
6
7 # This is a bit of a kludge.  Ideally, lilypond's tex, afm, pfa, ps
8 # directories should be installed into their location in the texmf/gs
9 # trees, rather than messing around with environment variables (eg,
10 # see Debian or SuSE package).
11
12 datadir="@datadir@"
13
14 # For direct ps output fonts
15 GS_FONTPATH="$datadir/afm:$datadir/pfa"
16
17 # For direct ps output: ps/lilyponddefs.ps
18 GS_LIB="$datadir/ps"
19
20 # bit silly. for ly2dvi, overrules compiled-in datadir...
21 # Better comment this out.  Compiled-in datadir serves exactly the
22 # same purpose, but is more likely to be correct (think multiple
23 # versions of lilypond).
24 # LILYPONDPREFIX="$datadir"
25
26 # include an empty path component for the system wide includes.
27 MFINPUTS="$datadir/mf:"${MFINPUTS:=":"}
28 TEXINPUTS="$datadir/tex:$datadir/ps:"${TEXINPUTS:=":"}
29 TFMFONTS="$datadir/tfm:"${TFMFONTS:=":"}
30
31 # LILYPONDPREFIX="$datadir"
32 # export LILYPONDPREFIX
33
34 export MFINPUTS TEXINPUTS TFMFONTS GS_LIB GS_FONTPATH 
35
36         
37
38