]> git.donarmstrong.com Git - lilypond.git/blob - buildscripts/lilypond-profile.sh
6f88b34523ed49508c30dab7829e814d170a93e4
[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 if [ -z "$LILYPONDPREFIX" ]; then
12     datadir=`echo "@local_lilypond_datadir@" | sed 's!//!/!g'`
13 else
14     if [ -d "$LILYPONDPREFIX/share" ]; then
15         datadir=$LILYPONDPREFIX/share/lilypond/
16     fi
17     echo "Setting tree to $datadir"
18 fi
19
20 # Add the installation directory to the teTeX system tree, 
21 # see Documentation/misc/fontinstallation
22 TEXMF="{$datadir,"`kpsexpand  \\$TEXMF`"}"
23 export TEXMF
24
25 # For direct ps output: ps/lilyponddefs.ps
26 GS_LIB="$datadir/ps:"${GS_LIB:=""}
27 export GS_LIB
28
29 # For direct ps output fonts. Add all available TeX Type1 fonts
30 GS_FONTPATH=`kpsewhich -expand-path=\\$T1FONTS`:${GS_FONTPATH:=""}
31 export GS_FONTPATH
32
33         
34
35