summaryrefslogtreecommitdiff
path: root/scripts/context/stubs/mswin/first-setup.bat
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/context/stubs/mswin/first-setup.bat')
-rw-r--r--scripts/context/stubs/mswin/first-setup.bat16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/context/stubs/mswin/first-setup.bat b/scripts/context/stubs/mswin/first-setup.bat
index 2c2eaec62..f06ad0e6b 100644
--- a/scripts/context/stubs/mswin/first-setup.bat
+++ b/scripts/context/stubs/mswin/first-setup.bat
@@ -16,10 +16,26 @@ if defined ProgramFiles(x86) (
if "%PROCESSOR_ARCHITEW6432%"=="AMD64" set PLATFORM=win64
)
+REM ~ copy /y bin\mtx-update.lua bin\x.lua
+
+if "%PLATFORM%" == "win64" goto update-win64
+
+:update-win32
+
rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin
+goto update
+
+:update-win64
+
+rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/win64/bin/ bin
+
+goto update
+
:update
+REM ~ copy /y bin\x.lua bin\mtx-update.lua
+
REM --mingw --nofiledatabase --engine=luatex
mtxrun --script ./bin/mtx-update.lua --update --force --make --engine=all --context=beta --texroot=%OWNPATH%tex %*