[tex-live] [FEATURE REQUEST] support for additional user texmf trees
Vladimir Lomov
lomov.vl at gmail.com
Wed Feb 22 14:47:09 CET 2012
Hello,
** Vladimir Lomov [2012-02-22 22:43:50 +0900]:
> Hello,
> some time ago I asked question about how to add support for additional user
> texmf trees. I found how to accomplish such task. This is what I did:
> 1. took sources (rsync from svn)
> 2. made changes in files texk/kpathsea/{cnf-to-pathis.awk,texmf.cnf}
> (patch is attached)
Sigh, I forgot patch file..
[...]
---
WBr, Vladimir Lomov
--
The programmers of old were mysterious and profound. We cannot fathom
their thoughts, so all we do is describe their appearance.
Aware, like a fox crossing the water. Alert, like a general on the
battlefield. Kind, like a hostess greeting her guests. Simple, like uncarved
blocks of wood. Opaque, like black pools in darkened caves.
Who can tell the secrets of their hearts and minds?
The answer exists only in the Tao.
-- Geoffrey James, "The Tao of Programming"
-------------- next part --------------
--- texk/kpathsea/cnf-to-paths.awk.orig 2012-02-22 20:21:48.000000000 +0900
+++ texk/kpathsea/cnf-to-paths.awk 2012-02-22 20:22:34.000000000 +0900
@@ -47,6 +47,8 @@
# If the value starts with /, presume we're compiling with changes
# made for a distro, and keep it. Likewise switch to :.
gsub(/;/, ":", val);
+ } else if (val ~ /\$HOME/) {
+ gsub(/;/, ":", val);
} else {
val = "/nonesuch";
}
--- texk/kpathsea/texmf.cnf.orig 2012-02-22 20:21:39.000000000 +0900
+++ texk/kpathsea/texmf.cnf 2012-02-22 20:22:05.000000000 +0900
@@ -463,7 +463,7 @@
%
% For security reasons, it is better not to include . in this path.
%
-TEXMFCNF = {$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}
+TEXMFCNF = $HOME;{$SELFAUTOLOC,$SELFAUTODIR,$SELFAUTOPARENT}{,{/share,}/texmf{-local,}/web2c}
% kpathsea 3.5.3 and later sets these at runtime. To avoid empty
% expansions from binaries linked against an earlier version of the
More information about the tex-live
mailing list