[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug in /etc/profile.d/lilypond.sh (with fix!)
From: |
Reuben Thomas |
Subject: |
Bug in /etc/profile.d/lilypond.sh (with fix!) |
Date: |
Tue, 2 Dec 2003 20:20:00 +0100 (CET) |
The Lilypond RPM contains the following stanza:
# Add the installation directory to the teTeX system tree,
# see Documentation/misc/fontinstallation
TEXMF="{$datadir,"`kpsexpand \\$TEXMF`"}"
export TEXMF
This isn't quite right, as every time you start a shell inside another
one, TEXMF gets another copy of the path shoved on to the front. The
following works:
# Add the installation directory to the teTeX system tree,
# see Documentation/misc/fontinstallation
if [ -z `echo $TEXMF | grep "$datadir"` ]; then
TEXMF="{$datadir,"`kpsexpand \\$TEXMF`"}"
export TEXMF
fi
The same goes for the commented-out lines exporting GS_LIB and
GS_FONTPATH; may as well correct those too.
--
http://www.mupsych.org/~rrt/
partisan, n. an adherent without sense (Bierce)
- Bug in /etc/profile.d/lilypond.sh (with fix!),
Reuben Thomas <=