summaryrefslogtreecommitdiff
path: root/Master/bin
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2023-02-19 20:11:52 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2023-02-19 20:11:52 +0000
commita5648bd0084547e704f0a999a826f40552942418 (patch)
tree234f28d8b403aedae89ab30f19f1a5f4f20b3d65 /Master/bin
parentc9056126e44b9ce8ec4583816045710009c83b3b (diff)
win32 => win64 transitions for bin/windows
git-svn-id: svn://tug.org/texlive/trunk@65931 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/bin')
-rwxr-xr-xMaster/bin/windows/psviewer.exebin17920 -> 6144 bytes
-rwxr-xr-xMaster/bin/windows/runscript.tlu4
-rwxr-xr-xMaster/bin/windows/tlmgr.bat67
-rwxr-xr-xMaster/bin/windows/tlshell.exebin23054 -> 45070 bytes
4 files changed, 69 insertions, 2 deletions
diff --git a/Master/bin/windows/psviewer.exe b/Master/bin/windows/psviewer.exe
index b2574a95313..07aa6a11ac0 100755
--- a/Master/bin/windows/psviewer.exe
+++ b/Master/bin/windows/psviewer.exe
Binary files differ
diff --git a/Master/bin/windows/runscript.tlu b/Master/bin/windows/runscript.tlu
index 56e613e32e9..52f7ee45722 100755
--- a/Master/bin/windows/runscript.tlu
+++ b/Master/bin/windows/runscript.tlu
@@ -78,7 +78,7 @@ local helpstr = [[
runscript <script-name> [script arguments]
If you prefer to call the script program simply by its name, copy
- and rename bin/win32/runscript.exe (or bin/win64/runscript.exe for
+ and rename bin/windows/runscript.exe (or bin/win64/runscript.exe for
64-bit Windows) to <script-name>.exe and put it somewhere on the
search path.]]
@@ -448,7 +448,7 @@ local function gettexmfdist()
-- remove '/runscript.dll'
a, b = string.find(str, '/', 1, true)
str = string.sub(str,a+1)
--- remove '/win32'
+-- remove '/windows'
a, b = string.find(str, '/', 1, true)
str = string.sub(str,a+1)
-- remove '/bin'
diff --git a/Master/bin/windows/tlmgr.bat b/Master/bin/windows/tlmgr.bat
new file mode 100755
index 00000000000..316d8d12a49
--- /dev/null
+++ b/Master/bin/windows/tlmgr.bat
@@ -0,0 +1,67 @@
+@echo off
+rem Advanced launcher for tlmgr with auto-update
+rem
+rem Public Domain
+rem Originally written 2009 by Tomasz M. Trzeciak
+
+rem Make environment changes local
+setlocal enableextensions
+
+rem Get TL installation root (w/o trailing backslash)
+set tlroot=%~dp0:
+set tlroot=%tlroot:\bin\windows\:=%
+
+rem check for any argument
+if x == x%1 goto noargs
+
+rem check for gui argument
+set args=
+
+:rebuildargs
+shift
+if x == x%0 goto nomoreargs
+if gui == %0 goto guibailout
+if -gui == %0 goto guibailout
+if --gui == %0 goto guibailout
+set args=%args% %0
+goto rebuildargs
+
+:nomoreargs
+
+rem Remove remains of previous update if any
+set tlupdater=%tlroot%\temp\updater-w32
+if exist "%tlupdater%" del "%tlupdater%"
+if exist "%tlupdater%" goto :err_updater_exists
+
+rem Start tlmgr
+set PERL5LIB=%tlroot%\tlpkg\tlperl\lib
+path %tlroot%\tlpkg\tlperl\bin;%tlroot%\bin\windows;%path%
+"%tlroot%\tlpkg\tlperl\bin\perl.exe" "%tlroot%\texmf-dist\scripts\texlive\tlmgr.pl" %args%
+
+rem Finish if there are no updates to do; the last error code will be returned
+if not exist "%tlupdater%" goto :eof
+rem Rename updater script before it is run
+move /y "%tlupdater%" "%tlupdater%.bat">nul
+if errorlevel 1 goto :err_rename_updater
+rem Run updater and don't return
+"%tlupdater%.bat"
+
+rem This should never execute
+echo %~nx0: this message should never show up, please report it to tex-live@tug.org>&2
+exit /b 1
+
+:err_updater_exists
+echo %~nx0: failed to remove previous updater script>&2
+exit /b 1
+
+:err_rename_updater
+echo %~nx0: failed to rename "%tlupdater%">&2
+exit /b 1
+
+:noargs
+echo No arguments given!
+
+:guibailout
+echo Use tlshell as a GUI for tlmgr.
+pause
+exit /b 1
diff --git a/Master/bin/windows/tlshell.exe b/Master/bin/windows/tlshell.exe
index 85da2f44a0e..b210471eaa8 100755
--- a/Master/bin/windows/tlshell.exe
+++ b/Master/bin/windows/tlshell.exe
Binary files differ