summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2010-05-30 22:11:39 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2010-05-30 22:11:39 +0000
commit98bc4c8e3cad8638dfd087abf9fc55f51fbe689f (patch)
treea82d0d28c303a776a8a8164a9ee94df34a7804ed /Build/source/texk
parent3b5b03b8f4b6b6e078dbc044973b18e8be8e8f47 (diff)
Windows XP or newer required to run TeXworks
git-svn-id: svn://tug.org/texlive/trunk@18623 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-rw-r--r--Build/source/texk/texlive/w32_wrapper/runscript.tlu3
1 files changed, 3 insertions, 0 deletions
diff --git a/Build/source/texk/texlive/w32_wrapper/runscript.tlu b/Build/source/texk/texlive/w32_wrapper/runscript.tlu
index 95e9ddbb3cb..04cbf786405 100644
--- a/Build/source/texk/texlive/w32_wrapper/runscript.tlu
+++ b/Build/source/texk/texlive/w32_wrapper/runscript.tlu
@@ -372,6 +372,7 @@ local lua_binary = arg[k]
kpse.set_program_name(lua_binary, progname)
-- various dir-vars
local TEXDIR = kpse.var_value('SELFAUTOPARENT')
+print('TEXDIR', TEXDIR)
local BINDIR = kpse.var_value('SELFAUTOLOC')
local PATH = os.getenv('PATH') or ''
-- perl stuff
@@ -459,6 +460,8 @@ local alias_table = {--[[
sam2p = {[0]=TEXDIR..'/tlpkg/sam2p/sam2p.exe', 'sam2p', argline},
texworks =
function ()
+ local winver = tonumber(string.match(os.uname().version, '%D*(%d+\.?%d*)'))
+ assert(winver >= 5.01, "Windows XP or newer required to run TeXworks")
local TW_LIBPATH = kpse.var_value('TW_LIBPATH') or
kpse.var_value('TEXMFCONFIG')..'/texworks'
local TW_INIPATH = kpse.var_value('TW_INIPATH') or TW_LIBPATH