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