]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-profile.sh
* lily/beam.cc (shift_region_to_valid): fix stupido bug.
[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
16 ## to support development from ~/usr/src/lilypon.
17     datadir=$LILYPONDPREFIX
18 fi
19
20 # For direct ps output: ps/lilyponddefs.ps
21 GS_LIB="$datadir/ps:"${GS_LIB:=""}
22 export GS_LIB
23
24
25 # Add the installation directory to the teTeX system tree, 
26 # see Documentation/misc/fontinstallation
27 TEXMF="{$datadir,"`kpsexpand  \\$TEXMF`"}"
28 export TEXMF
29
30
31 # For direct ps output fonts. Add all available TeX Type1 fonts
32 GS_FONTPATH=`kpsewhich -expand-path=\\$T1FONTS`:${GS_FONTPATH:=""}
33 export GS_FONTPATH
34
35         
36
37