summaryrefslogtreecommitdiff
path: root/Master/tl-portable.bat
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2010-06-25 00:57:36 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2010-06-25 00:57:36 +0000
commit0402f14f8d60fd3b46a00e4f81a2bbe925565b2b (patch)
treefdadbd7d23d99c6cbf17bac41563e76e4814c1c9 /Master/tl-portable.bat
parent7ddd7b09dbcaf57579980d5cc31d1f06370bdbd4 (diff)
portable installation option (changes handling of -portable switch)
git-svn-id: svn://tug.org/texlive/trunk@19149 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tl-portable.bat')
-rwxr-xr-xMaster/tl-portable.bat51
1 files changed, 5 insertions, 46 deletions
diff --git a/Master/tl-portable.bat b/Master/tl-portable.bat
index abaf87540b7..359eac4d7e4 100755
--- a/Master/tl-portable.bat
+++ b/Master/tl-portable.bat
@@ -9,55 +9,14 @@ if not ^x==x goto DOS
rem Abort if we are running from UNC path
if %~d0==\\ goto UNC
-rem Localize environment changes
-setlocal enableextensions
-
-rem TeX Live Root; ends with backslash
-set TEXDIR=%~dp0
-
-rem TEXDIR writable?
-set TEXDIRW=%USERPROFILE%\.tlportable2010\
-del "%TEXDIR%tl_wrtest" 2>nul
-echo Testing for write access %TEXDIR%...
-echo Hello >"%TEXDIR%tl_wrtest"
-if not exist "%TEXDIR%tl_wrtest" goto wrtestdone
-del "%TEXDIR%tl_wrtest"
-set TEXDIRW=%TEXDIR%
-:wrtestdone
-if not exist "%TEXDIRW%" md "%TEXDIRW%"
-
-rem Use TEXMFHOME for private data,
-rem TEXMFLOCAL for department- or workgroup data.
-rem It is allright if TEXMFLOCAL does not exist.
-
-set TEXMFSYSVAR=%TEXDIRW%texmf-var
-if exist "%TEXDIR%texmf-var" set TEXMFSYSVAR=%TEXDIR%texmf-var
-
-set TEXMFSYSCONFIG=%TEXDIRW%texmf-config
-if exist "%TEXDIR%texmf-config" set TEXMFSYSCONFIG=%TEXDIR%texmf-config
-set TEXMFMAIN=%TEXDIR%texmf
-set TEXMFDIST=%TEXDIR%texmf-dist
-set TEXMFLOCAL=%TEXDIR%texmf-local
-set TEXMFHOME=%TEXDIRW%texmf-home
-set TEXMFVAR=%TEXDIRW%texmf-var
-set TEXMFCONFIG=%TEXDIRW%texmf-config
-set TEXBINDIR=%TEXDIR%bin\win32
-set platform=win32
-
rem use provided Perl
-set PERL5LIB=%TEXDIR%tlpkg\tlperl\lib
-path %TEXDIR%tlpkg\tlperl\bin;%TEXDIR%bin\win32;%path%
-perl "%TEXDIR%install-tl" --portable
-if errorlevel 1 goto failedinit
+set PERL5LIB=%~dp0tlpkg\tlperl\lib
+path %~dp0bin\win32;%path%
rem start new command interperter with customized prompt and window title
-"%ComSpec%" /k "title TL-SHELL& prompt TL %prompt%"
-goto :eof
-
-:failedinit
-echo Initialization of TeX Live failed!
-pause
-exit /b 1
+rem reuse console window of this interpreter and terminate it after that
+start /b "TL-SHELL" "%ComSpec%" /k "title TL-SHELL& prompt TL$S%prompt%"
+exit
:UNC
echo Cannot run from UNC path.