summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
authorPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-15 22:43:32 +0000
committerPiotr Strzelczyk <piotr@eps.gda.pl>2009-05-15 22:43:32 +0000
commitb9717b974fff2bd29e2a5a583311969f9fa98bdb (patch)
tree879b6cc3a80edc68ae30aa509f35772d79169651 /Master/texmf
parentb7827fe5d0581963eb0276ee11543c8b81b1baa0 (diff)
hiding console window for tlmgr gui
git-svn-id: svn://tug.org/texlive/trunk@13105 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index fab861a322a..6ef37dd6dbf 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -1149,14 +1149,14 @@ sub write_w32_updater {
print UPDATER '
@echo off
setlocal enableextensions
-(set errorlevel=)
(set guimode=' . $::gui_mode . ')
>nul copy /y "%~dp0..\texmf\scripts\texlive\updater-w32.bat" "%~dp0updater-w32.bat"
rem Execute with cmd.exe to avoid problems if 4NT is used
rem Keep files write open during execution to signal running state
-cmd.exe /c call "%~dp0updater-w32.bat" ' . join(' ',@updater_args) . ' 8^>^>"%~f0" 9^>^>"%~dp0updater-w32.bat"
+rem For gui mode console window might be hidden, so open a new one
+' . ($::gui_mode ? 'start /wait ' : '') . 'cmd.exe /c title TeX Live Manager 2009^& call "%~dp0updater-w32.bat" ' . join(' ', @updater_args) . ' 8^>^>"%~f0" 9^>^>"%~dp0updater-w32.bat"
rem Self-delete without error message about missing file
-(if not errorlevel 1 start /b cmd.exe /c del "%~f0" "%~dp0updater-w32.bat") & exit /b %errorlevel%
+(if not errorlevel 1 start /b cmd.exe /c del "%~f0" "%~dp0updater-w32.bat") & goto :eof
';
close UPDATER;
return 0;