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'`
15 if [ -d "$LILYPONDPREFIX/fonts" ] ; then
16 datadir=$LILYPONDPREFIX
18 eval `cat $LILYPONDPREFIX/VERSION`
19 FULLVERSION="$MAJOR_VERSION.$MINOR_VERSION.$PATCH_LEVEL"
20 datadir="$LILYPONDPREFIX/share/lilypond/$FULLVERSION"
22 echo "Setting tree to $datadir"
25 # Add the installation directory to the teTeX system tree,
26 # see Documentation/misc/fontinstallation
27 TEXMF="{$datadir,"`kpsexpand \\$TEXMF`"}"
30 # For direct ps output: ps/lilyponddefs.ps
31 GS_LIB="$datadir/ps:"${GS_LIB:=""}
37 # For direct ps output fonts. Add all available TeX Type1 fonts
38 GS_FONTPATH=`kpsewhich -expand-path=\\$T1FONTS`:${GS_FONTPATH:=""}