[subversion-commit] SVN tex-common commit + diffs: r901 -
tex-common/trunk/doc
Norbert Preining
preining-guest at costa.debian.org
Sat Feb 18 18:20:45 UTC 2006
Author: preining-guest
Date: 2006-02-18 18:20:44 +0000 (Sat, 18 Feb 2006)
New Revision: 901
Modified:
tex-common/trunk/doc/Debian-TeX-Policy.sgml
Log:
postrm example code with kpsewhich check
Modified: tex-common/trunk/doc/Debian-TeX-Policy.sgml
===================================================================
--- tex-common/trunk/doc/Debian-TeX-Policy.sgml 2006-02-17 11:53:57 UTC (rev 900)
+++ tex-common/trunk/doc/Debian-TeX-Policy.sgml 2006-02-18 18:20:44 UTC (rev 901)
@@ -931,20 +931,20 @@
update_fontmaps()
{
update-updmap --quiet
- # mktexlsr is recommended now because updmap-sys relies heavily on
- # Kpathsea to locate updmap.cfg and the map files. Also, it is slightly
- # better not to specify a particular directory to refresh because
- # updmap.cfg is typically found in $TEXMFSYSVAR while the map files are in
- # $TEXMFMAIN.
- # According to the Debian TeX policy, running mktexlsr and updmap-sys
- # should work as long as tex-common is configured and these files are
- # available (general Debian policy wouldn't assure that without this
- # override from the Debian TeX policy).
- if which mktexlsr >/dev/null; then mktexlsr; fi
- if which updmap-sys >/dev/null; then
- printf "Running updmap-sys... "
- updmap-sys --quiet
- echo "done."
+ # all of the following needs an installed and configured
+ # base TeX system, so check this
+ if kpsewhich --version > /dev/null 2>&1 ; then
+ # mktexlsr is recommended now because updmap-sys relies
+ # heavily on Kpathsea to locate updmap.cfg and the map files.
+ # Also, it is slightly better not to specify a particular
+ # directory to refresh because updmap.cfg is typically found
+ # in $TEXMFSYSVAR while the map files are in # $TEXMFMAIN.
+ if which mktexlsr >/dev/null; then mktexlsr; fi
+ if which updmap-sys >/dev/null; then
+ printf "Running updmap-sys... "
+ updmap-sys --quiet
+ echo "done."
+ fi
fi
return 0
More information about the Pkg-tetex-commits
mailing list