diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2011-04-06 20:17:55 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2011-04-06 20:17:55 +0000 |
commit | 6b896146ffc1b590a6b8723c04b2d6a4be484b71 (patch) | |
tree | 5da3d567ddfd4862ae5627f457f66291b0f30189 | |
parent | 1d35ce06d97a2c60f99bdcf32e33a1f300cc1965 (diff) |
Batch menu for portable use
git-svn-id: svn://tug.org/texlive/trunk@22000 c570f23f-e606-0410-a88d-b1316a301751
-rwxr-xr-x | Master/tlpkg/installer/tlmenu.bat | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/Master/tlpkg/installer/tlmenu.bat b/Master/tlpkg/installer/tlmenu.bat new file mode 100755 index 00000000000..96764c96f32 --- /dev/null +++ b/Master/tlpkg/installer/tlmenu.bat @@ -0,0 +1,56 @@ +@ECHO OFF + +SETLOCAL ENABLEEXTENSIONS +SETLOCAL ENABLEDELAYEDEXPANSION + +set tlroot=%~dp0 +path %tlroot%bin\win32;%path% + +:menuloop + +set ans= +cls + +echo === TeX Live Menu === +echo. +echo 1 TeX Live command prompt +echo 2 Managing the installation +if exist %tlroot%bin\win32\texworks.exe ( + echo 3 TeXWorks +) + +echo Q Quit +echo. +set /p ans="Make a choice: " + +if "%ans%"=="1" ( + cmd /k "set prompt=TL $P$G & cls" + exit +) + +if "%ans%"=="2" ( + echo Starting tlmgr + echo Please be patient + wscript %tlroot%bin\win32\tlmgr-gui.vbs + exit +) + +if "%ans%"=="3" ( + if not exist %tlroot%bin\win32\texworks.exe ( + echo TeXworks not available + goto :menuloop + ) + start texworks + exit +rem goto :eof +) + +if "%ans%"=="Q" ( + exit +) + +if "%ans%"=="q" ( + exit +) + +goto :menuloop |