summaryrefslogtreecommitdiff
path: root/web2c
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-06-25 12:40:12 +0300
committerMarius <mariausol@gmail.com>2011-06-25 12:40:12 +0300
commit9963d62aabbced75e14b6d5985f2955551210252 (patch)
tree7aee0363314f8e2fe196ad99bc907edbf5f328f5 /web2c
parent1f49aee839e281d04be7b6cb6f959590bed1d581 (diff)
downloadcontext-9963d62aabbced75e14b6d5985f2955551210252.tar.gz
beta 2011.06.25 11:24
Diffstat (limited to 'web2c')
-rw-r--r--web2c/texlive2011cnf.lua17
1 files changed, 13 insertions, 4 deletions
diff --git a/web2c/texlive2011cnf.lua b/web2c/texlive2011cnf.lua
index f11e45731..024e04205 100644
--- a/web2c/texlive2011cnf.lua
+++ b/web2c/texlive2011cnf.lua
@@ -1,4 +1,7 @@
-return {
+local liveyear = string.match(resolvers.prefixes.selfautoparent(),"(20%d%d)") or "2011"
+
+--~ return {
+inspect {
type = "configuration",
version = "1.1.1",
@@ -19,17 +22,23 @@ return {
--
-- TEXMFCNF = "{selfautodir:{/share,}/texmf-local/web2c,selfautoparent:{/share,}/texmf{-local,}/web2c}",
- TEXMFCACHE = "selfautoparent:texmf-var;~/.texlive2011/texmf-cache",
- TEXMFCONFIG = "~/.texlive2011/texmf-config",
+ TEXMFCACHE = string.format("selfautoparent:texmf-var;~/.texlive%s/texmf-cache",liveyear),
TEXMFSYSTEM = "selfautoparent:$SELFAUTOSYSTEM",
TEXMFCONTEXT = "selfautoparent:texmf-dist",
+ -- TEXMFLOCAL = "selfautoparent:../texmf-local"), -- should also work
TEXMFLOCAL = string.gsub(resolvers.prefixes.selfautoparent(),"20%d%d$","texmf-local"),
TEXMFSYSCONFIG = "selfautoparent:texmf-config",
-
TEXMFSYSVAR = "selfautoparent:texmf-var",
+ TEXMFCONFIG = string.format("home:.texlive%s/texmf-config",liveyear),
+ TEXMFVAR = string.format("home:.texlive%s/texmf-var",liveyear),
+
+ -- We have only one cache path but there can be more. The first writable one
+ -- will be chosen but there can be more readable paths.
+
+ TEXMFCACHE = "$TEXMFSYSVAR;$TEXMFVAR",
TEXMF = "{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFCONTEXT,!!$TEXMFSYSTEM,!!$TEXMFMAIN}",