diff options
author | Norbert Preining <preining@logic.at> | 2008-04-22 21:49:11 +0000 |
---|---|---|
committer | Norbert Preining <preining@logic.at> | 2008-04-22 21:49:11 +0000 |
commit | ca622f59fd69034dc10d731bfedcf0a9c80d5d0f (patch) | |
tree | cae3c989ff23c6c9046e75aa50a7ae64d278059e | |
parent | 1f4b41b52999e4c4a2e954d2f48c3c239119675f (diff) |
make tlmgr work on unix, too
git-svn-id: svn://tug.org/texlive/trunk@7605 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/texmf/scripts/texlive/tlmgr.tlu | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.tlu b/Master/texmf/scripts/texlive/tlmgr.tlu index 1c78db5343a..933de46670d 100755 --- a/Master/texmf/scripts/texlive/tlmgr.tlu +++ b/Master/texmf/scripts/texlive/tlmgr.tlu @@ -98,9 +98,15 @@ else -- no path end --- we have to give tlmgr.texlua to kpse.set_prognam_name because --- it expects a program in the PATH ... -basename=select(1, string.gsub(filename, '\.tlu$', '.texlua')) +-- we have to put the real calling program into basename. On win32 this +-- will be the filename replacing tlu with texlua, on unix just the +-- filename without extension +-- +if os.type == 'windows' then + basename=select(1, string.gsub(filename, '\.tlu$', '.texlua')) +else + basename=select(1, string.gsub(filename, '\.tlu$', '')) +end kpse.set_program_name(basename) TEXDIR=kpse.var_value('SELFAUTOPARENT') |