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