summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/latexmk/latexmk.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/latexmk/latexmk.pl')
-rwxr-xr-xMaster/texmf-dist/scripts/latexmk/latexmk.pl20
1 files changed, 10 insertions, 10 deletions
diff --git a/Master/texmf-dist/scripts/latexmk/latexmk.pl b/Master/texmf-dist/scripts/latexmk/latexmk.pl
index acadd33c844..0a2c26e6ba9 100755
--- a/Master/texmf-dist/scripts/latexmk/latexmk.pl
+++ b/Master/texmf-dist/scripts/latexmk/latexmk.pl
@@ -148,8 +148,8 @@ if 0;
$my_name = 'latexmk';
$My_name = 'Latexmk';
-$version_num = '4.02';
-$version_details = "$My_name, John Collins, 15 November 2008";
+$version_num = '4.02a';
+$version_details = "$My_name, John Collins, 26 November 2008";
use Config;
@@ -218,6 +218,10 @@ else {
##
## Modification log for 24 Sep 2008 onwards in detail
##
+## 26 Nov 2008, John Collins Correct problem with invocation of MSWin
+## with cygwin
+## 25 Nov 2008, John Collins Correct problem with invocation of MSWin
+## start command
## 15 Nov 2008, John Collins Make version # 4.02, for release
## 12 Nov 2008, John Collins Deal with quoted filenames in log file
## (as with MikTeX)
@@ -616,7 +620,7 @@ elsif ( $^O eq "cygwin" ) {
# NT-native start command of a cmd.exe is used.
# For a pdf-file, "start x.pdf" starts the pdf viewer associated with
# pdf files, so no program name is needed:
- $start_NT = "cmd /c start";
+ $start_NT = "cmd /c start \"\"";
$pdf_previewer = "$start_NT %O %S";
$ps_previewer = "$start_NT %O %S";
$ps_previewer_landscape = $ps_previewer;
@@ -6018,7 +6022,9 @@ sub Run_Detached {
if ( "$^O" eq "MSWin32" ){
# Win95, WinNT, etc: Use MS's start command:
- return( 0, system( "start $cmd_line" ) );
+ # Need extra double quotes to deal with quoted filenames:
+ # MSWin start takes first quoted argument to be a Window title.
+ return( 0, system( "start \"\" $cmd_line" ) );
} else {
# Assume anything else is UNIX or clone
# For this purpose cygwin behaves like UNIX.
@@ -6132,9 +6138,3 @@ sub finish_dir_stack {
#************************************************************
#************************************************************
-#************************************************************
-#************************************************************
-#************************************************************
-#************************************************************
-#************************************************************
-#************************************************************