]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-profile.sh
release: 1.5.40
[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 # If run by hand or from you .profile, run as follows
8 #   . lilypond-profile
9
10 # This is a bit of a kludge.  Ideally, lilypond's tex, afm, pfa, ps
11 # directories should be installed into their location in the texmf/gs
12 # trees, rather than messing around with environment variables (eg,
13 # see Debian or SuSE package).
14
15 datadir=`echo "@datadir@" | sed 's!//!/!g'`
16
17 # For direct ps output fonts
18 GS_FONTPATH="$datadir/afm:$datadir/pfa:"${GS_FONTPATH:=""}
19
20 # For direct ps output: ps/lilyponddefs.ps
21 GS_LIB="$datadir/ps:"${GS_LIB:=""}
22
23 # bit silly. for ly2dvi, overrules compiled-in datadir...
24 # Better comment this out.  Compiled-in datadir serves exactly the
25 # same purpose, but is more likely to be correct (think multiple
26 # versions of lilypond).
27 # LILYPONDPREFIX="$datadir"
28
29 # include an empty path component for the system wide includes.
30 MFINPUTS="$datadir/mf:"${MFINPUTS:=":"}
31 TEXINPUTS="$datadir/tex:$datadir/ps:"${TEXINPUTS:=":"}
32 TFMFONTS="$datadir/tfm:"${TFMFONTS:=":"}
33 TEXPSHEADERS="$datadir/pfa/:"${TEXPSHEADERS:=":"}
34 TEXCONFIG="$datadir/pfa/:"${TEXCONFIG:=":"}
35
36
37
38 # LILYPONDPREFIX="$datadir"
39 # export LILYPONDPREFIX
40
41 export MFINPUTS TEXINPUTS TFMFONTS GS_LIB GS_FONTPATH
42 export TEXPSHEADERS TEXCONFIG
43
44         
45
46