summaryrefslogtreecommitdiff
path: root/Master/install-tl.bat
diff options
context:
space:
mode:
authorSiep Kroonenberg <siepo@cybercomm.nl>2008-08-08 11:05:15 +0000
committerSiep Kroonenberg <siepo@cybercomm.nl>2008-08-08 11:05:15 +0000
commit7cd0b34db831e6cc32466943e9d302923e1b2bf7 (patch)
tree453e835d8b10734e19b576306079fe58fcc3afaf /Master/install-tl.bat
parentf14cf724341d0b069f663fc85292da646ca5cea2 (diff)
Added test for existing TeX
git-svn-id: svn://tug.org/texlive/trunk@10170 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/install-tl.bat')
-rwxr-xr-xMaster/install-tl.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/Master/install-tl.bat b/Master/install-tl.bat
index a0d1837ada2..35e1eadde9c 100755
--- a/Master/install-tl.bat
+++ b/Master/install-tl.bat
@@ -1,5 +1,13 @@
@echo off
+rem test for existing TeX
+tex -v >nul 2>&1
+if errorlevel 1 goto doit
+echo There is already a TeX! Are you sure you want to continue?
+echo Abort installation with Ctrl-C or continue with any other key.
+pause
+:doit
+
rem TeX Live Root; ends with backslash
rem This should also work with UNC names
set tlroot=%~dp0