[Debian-tex-commits] SVN tex-common commit + diffs: r4781 - tex-common/trunk/debian
Norbert Preining
preining at alioth.debian.org
Sun Jan 9 05:36:22 UTC 2011
Author: preining
Date: 2011-01-09 05:36:21 +0000 (Sun, 09 Jan 2011)
New Revision: 4781
Modified:
tex-common/trunk/debian/postinst.in
Log:
use $TEXMFSYSVARDIR instead of hard-coded string
Modified: tex-common/trunk/debian/postinst.in
===================================================================
--- tex-common/trunk/debian/postinst.in 2011-01-02 07:58:34 UTC (rev 4780)
+++ tex-common/trunk/debian/postinst.in 2011-01-09 05:36:21 UTC (rev 4781)
@@ -7,8 +7,6 @@
#include variables
<:=@COPYRIGHT:>//
-TEXMFTREES="/usr/share/texmf /var/lib/texmf"
-FULLTEXMFTREES="$TEXMFTREES /usr/share/texmf-texlive"
## Define static variables we need
UCF_FILES="<:=$TEX_COMMON_UCF_FILES:>"
@@ -19,7 +17,10 @@
POSTINST_MOVE_EXT="<:=$POSTINST_MOVE_EXT:>"
FONTCACHE_PERMS=<:=$FONTCACHE_PERMS:>
+TEXMFTREES="/usr/share/texmf $TEXMFSYSVARDIR"
+FULLTEXMFTREES="$TEXMFTREES /usr/share/texmf-texlive"
+
umask 022
# Give a name to the first commandline argument
@@ -144,7 +145,7 @@
# call updmap with --nohash so that no ls-R files
# are created in /usr/local/share/texmf/
# see bug report #607857
- # instead of that we call mktexlsr /var/lib/texmf
+ # instead of that we call mktexlsr $TEXMFSYSVARDIR
# afterwards. This can be done without checks as
# we know that dhit_libkpathsea_configured and
# since mktexlsr and updmap are in the same package
@@ -153,14 +154,14 @@
rm -f $tempfile
echo "done."
tempfile=$(mktemp -p /tmp mktexlsr.XXXXXXXX)
- printf "Running mktexlsr /var/lib/texmf ... "
- if mktexlsr /var/lib/texmf > $tempfile 2>&1 ; then
+ printf "Running mktexlsr $TEXMFSYSVARDIR ... "
+ if mktexlsr $TEXMFSYSVARDIR > $tempfile 2>&1 ; then
rm -f $tempfile
echo "done."
else
exec >&2
echo
- echo "mktexlsr /var/lib/texmf failed. Output has been stored in"
+ echo "mktexlsr $TEXMFSYSVARDIR failed. Output has been stored in"
echo "$tempfile"
echo "Please include this file if you report a bug."
echo
More information about the Debian-tex-commits
mailing list