]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-profile.sh
(before_line_breaking): update
[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     if [ -d "$LILYPONDPREFIX/fonts" ] ; then
16         datadir=$LILYPONDPREFIX
17     else
18         eval `cat $LILYPONDPREFIX/VERSION`
19         FULLVERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL"
20         datadir="$LILYPONDPREFIX/share/lilypond/$FULLVERSION"
21     fi
22     echo "Setting tree to $datadir"
23 fi
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 # For direct ps output: ps/lilyponddefs.ps
31 GS_LIB="$datadir/ps:"${GS_LIB:=""}
32 export GS_LIB
33
34
35
36
37 # For direct ps output fonts. Add all available TeX Type1 fonts
38 GS_FONTPATH=`kpsewhich -expand-path=\\$T1FONTS`:${GS_FONTPATH:=""}
39 export GS_FONTPATH
40
41         
42
43