3 # Setup TeX/LaTeX Ghostscript environment for LilyPond.
5 # Red Hat-like systems should install this in /etc/profile.d/
7 # If run by hand or from you .profile, run as follows
11 if [ -z "$LILYPONDPREFIX" ]; then
12 datadir=`echo "@local_lilypond_datadir@" | sed 's!//!/!g'`
14 if [ -d "$LILYPONDPREFIX/share" ]; then
15 datadir=$LILYPONDPREFIX/share/lilypond/
17 echo "Setting tree to $datadir"
20 # Add the installation directory to the teTeX system tree,
21 # see Documentation/misc/fontinstallation
22 TEXMF="{$datadir,"`kpsexpand \\$TEXMF`"}"
25 # For direct ps output: ps/lilyponddefs.ps
26 GS_LIB="$datadir/ps:"${GS_LIB:=""}
29 # For direct ps output fonts. Add all available TeX Type1 fonts
30 GS_FONTPATH=`kpsewhich -expand-path=\\$T1FONTS`:${GS_FONTPATH:=""}