diff options
author | Norbert Preining <preining@logic.at> | 2008-07-27 15:22:35 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-07-27 15:22:35 +0000 |
commit | febe8447d64323d3816a37e78a2b8fe751fcb284 (patch) | |
tree | c163f33c912764793210e0cf19e03f61cd685db5 /Master | |
parent | c9102cd5d8aa353822f6d159c813796a497220d6 (diff) |
texconf.tlu: fix context paper size setting if it is not installed.
That is only a temporary fix, it should actually check the tlpdb. But I
dont't want to make these changes now ...
git-svn-id: svn://tug.org/texlive/trunk@9814 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rwxr-xr-x | Master/texmf/scripts/texlive/texconf.tlu | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf/scripts/texlive/texconf.tlu b/Master/texmf/scripts/texlive/texconf.tlu index b9cb3f7e934..0ad1dbc449b 100755 --- a/Master/texmf/scripts/texlive/texconf.tlu +++ b/Master/texmf/scripts/texlive/texconf.tlu @@ -38,6 +38,7 @@ kpse.set_program_name( "mktexlsr" ) -- set the search path for lua libraries texmfmain = kpse.var_value('TEXMFMAIN') +texmfdist = kpse.var_value('TEXMFDIST') package.path = texmfmain.."/scripts/texlive/lua/?.tlu" require("texlive.getopt") require("texlive.utils") @@ -489,6 +490,15 @@ end function set_context_papersize(papersize) local current_setting + + -- we cannot guarantee that context is installed, so we check for the + -- file we would need for creating the configuration, and if that is + -- missing we just return (with a warning). + if not(lfs.isfile(texmfdist..'/tex/context/user/cont-sys.rme')) then + io.stderr:write('context not installed, skipping paper setting for it\n') + return + end + -- Read the file. local filename @@ -564,6 +574,7 @@ function set_papersize(papersize) set_dvips_papersize(papersize) set_pdftex_papersize(papersize) set_xdvi_papersize(papersize) + set_context_papersize(papersize) set_dvipdfm_papersize(papersize, 'dvipdfm') set_dvipdfm_papersize(papersize, 'dvipdfmx') end |