summaryrefslogtreecommitdiff
path: root/Master/bin/win32
diff options
context:
space:
mode:
Diffstat (limited to 'Master/bin/win32')
-rwxr-xr-xMaster/bin/win32/runscript.tlu16
1 files changed, 10 insertions, 6 deletions
diff --git a/Master/bin/win32/runscript.tlu b/Master/bin/win32/runscript.tlu
index 06f01cdf2f6..a34cc9eb4d0 100755
--- a/Master/bin/win32/runscript.tlu
+++ b/Master/bin/win32/runscript.tlu
@@ -281,6 +281,8 @@ local docstr = [[
-- HELPER SUBROUTINES --
local TEXDIR
+local TEXDIRBSL
+local TEXMFDISTBSL
local guimode
local function show_error(msg)
@@ -706,12 +708,14 @@ if GSEXE then
end
else
-- use built in gs
- os.setenv('GS_LIB', TEXDIR..'/tlpkg/tlgs/lib;'
- ..TEXDIR..'/tlpkg/tlgs/fonts;'
- ..TEXDIR..'/tlpkg/tlgs/Resource/Init;'
- ..TEXDIR..'/tlpkg/tlgs/Resource;'
- ..TEXDIR..'/tlpkg/tlgs/kanji;'
- ..string.gsub(os.getenv('WINDIR'), '\\', '/')..'/Fonts;'..TEXMFDIST..'/fonts')
+ TEXDIRBSL = string.gsub(TEXDIR,'/', '\\')
+ TEXMFDISTBSL = string.gsub(TEXMFDIST,'/', '\\')
+ os.setenv('GS_LIB', TEXDIRBSL..'\\tlpkg\\tlgs\\lib;'
+ ..TEXDIRBSL..'\\tlpkg\\tlgs\\fonts;'
+ ..TEXDIRBSL..'\\tlpkg\\tlgs\\Resource\\Init;'
+ ..TEXDIRBSL..'\\tlpkg\\tlgs\\Resource;'
+ ..TEXDIRBSL..'\\tlpkg\\tlgs\\kanji;'
+ ..os.getenv('WINDIR')..'\\Fonts;'..TEXMFDISTBSL..'\\fonts')
os.setenv('GS_DLL', TEXDIR..'/tlpkg/tlgs/bin/gsdll32.dll')
GSEXE = TEXDIR..'/tlpkg/tlgs/bin/gswin32c.exe'
GSNAME = 'gswin32c.exe'