]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-profile.sh
release: 1.5.43
[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 datadir=`echo "@datadir@" | sed 's!//!/!g'`
11
12 # For direct ps output fonts
13 GS_FONTPATH="$datadir/fonts/afm:$datadir/fonts/type1:"${GS_FONTPATH:=""}
14
15 # For direct ps output: ps/lilyponddefs.ps
16 GS_LIB="$datadir/ps:"${GS_LIB:=""}
17
18 # bit silly. for ly2dvi, overrules compiled-in datadir...
19 # Better comment this out.  Compiled-in datadir serves exactly the
20 # same purpose, but is more likely to be correct (think multiple
21 # versions of lilypond).
22 # LILYPONDPREFIX="$datadir"
23
24 # Add the installation directory to the teTeX system tree, 
25 # see Documentation/misc/fontinstallation
26 TEXMF="{$datadir,"`kpsexpand  \\$TEXMF`"}"
27
28 # LILYPONDPREFIX="$datadir"
29 # export LILYPONDPREFIX
30
31 export GS_LIB GS_FONTPATH TEXMF
32
33         
34
35