@echo off setlocal echo okay > ok.log ruby -e "File.delete('ok.log')" if not exist "ok.log" goto okay echo. echo You need to install Ruby first (if you want to use pdfTeX or XeTeX). echo Fetching files anyway. echo. :okay set OWNPATH=%~dp0 set CONTEXTROOT=%OWNPATH%tex set PATH=%OWNPATH%bin;%CONTEXTPATH%\texmf-mswin\bin;%PATH% set CYGWIN=nontsec rsync -av --exclude 'rsync.exe' --exclude 'cygwin1.dll' --exclude 'cygiconv-2.dll' rsync://contextgarden.net/minimals/setup/mswin/bin/ bin mtxrun --script ./bin/mtx-update.lua --force --update --make --engine=all --context=beta --texroot=%CONTEXTROOT% %* echo. echo When you want to use context, you need to initialize the tree with: echo. echo %CONTEXTROOT%\setuptex.bat %CONTEXTROOT% echo. echo You can associate this command with a shortcut to the cmd prompt. echo. if not exist "ok.log" goto end echo. echo If you want to use pdfTeX or XeTeX you need to install Ruby first. echo Remake formats or rerun this script afterwards. echo. del /q ok.log :end endlocal call tex/setuptex.bat mtxrun.exe --generate