]> 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
11
12 if [ "$LILYPONDPREFIX" == "" ] ; then
13     datadir=`echo "@datadir@" | sed 's!//!/!g'`
14 else
15 ## to support development from ~/usr/src/lilypon.
16     datadir=$LILYPONDPREFIX
17 fi
18
19 # For direct ps output: ps/lilyponddefs.ps
20 GS_LIB="$datadir/ps:"${GS_LIB:=""}
21 export GS_LIB
22
23
24 # Add the installation directory to the teTeX system tree, 
25 # see Documentation/misc/fontinstallation
26 TEXMF="{$datadir,"`kpsexpand  \\$TEXMF`"}"
27 export TEXMF
28
29
30 # For direct ps output fonts. Add all available TeX Type1 fonts
31 GS_FONTPATH=`kpsewhich -expand-path=\\$T1FONTS`:${GS_FONTPATH:=""}
32 export GS_FONTPATH
33
34         
35
36