[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: test version of tetex-bin(update-texmf)



From: Julian Gilbey <J.D.Gilbey@qmul.ac.uk>
Subject: Re: test version of tetex-bin(update-texmf)
Date: Thu, 14 Mar 2002 10:21:07 +0000

> > Please consider that if we use texmf.d and update-texmf texconfig has to
> > change the files in texmf.d and call update-texmf afterwards. Also the
> > files in texmf.d can not be conffiles if they are files which texconfig
> > would change.
> 
> Not quite true; as long as it's the *sysadmin* changing them, even
> using texconfig, they can be conffiles.
> 
> Alternatively, we can just have the single file which texconfig
> modifies being a maintainer-script handled non-conffile, and the rest
> can be conffiles.

As I said before, I doubt that we should provide menu
for VARTEXFONTS but here are draft modifications for
texconfig.  But I am not good at shell script so these
might be not correct solutions...

The first one is to modify /etc/texmf/texmf.d/05TeXMF

civic:/usr/sbin$ diff -u texconfig.orig texconfig
--- texconfig.orig	Fri Mar 15 16:45:07 2002
+++ texconfig	Fri Mar 15 17:28:26 2002
@@ -1476,7 +1476,8 @@
   test -d "$vardir/source" ||
     { mkdir "$vardir/source" && chmod 1777 "$vardir/source"; } || return 1
 
-  config_replace "$texmfcnf" '^VARTEXFONTS' "VARTEXFONTS  = $vardir"
+  config_replace "/etc/texmf/texmf.d/05TeXMF" '^VARTEXFONTS' "VARTEXFONTS  = $vardir"
+  test -x /usr/sbin/update-texmf && /usr/sbin/update-texmf || return 1
 }
 
 
and the next is to generate /etc/texmf/texmf.d/00vardir
(in this case we should remove /etc/texmf/texmf.d/00vardir
in prerm, perhaps)

civic:/usr/sbin$ diff -u texconfig.orig texconfig
--- texconfig.orig	Fri Mar 15 16:45:07 2002
+++ texconfig	Fri Mar 15 17:28:53 2002
@@ -1476,7 +1476,8 @@
   test -d "$vardir/source" ||
     { mkdir "$vardir/source" && chmod 1777 "$vardir/source"; } || return 1
 
-  config_replace "$texmfcnf" '^VARTEXFONTS' "VARTEXFONTS  = $vardir"
+  echo "VARTEXFONTS  = $vardir" > /etc/texmf/texmf.d/00vardir
+  test -x /usr/sbin/update-texmf && /usr/sbin/update-texmf || return 1
 }
 
 
The first one might be better?

Best regards,			2002.3.15

-- 
 Debian Developer & Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <kohda@debian.org>
 Department of Math., Univ. of Tokushima



Reply to: