diff options
Diffstat (limited to 'Master/texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc')
-rw-r--r-- | Master/texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc index d77cdc41c13..5bcfeb0fdfd 100644 --- a/Master/texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc +++ b/Master/texmf-dist/doc/support/latexmk/example_rcfiles/mpost_latexmkrc @@ -8,17 +8,17 @@ # ($out_dir) is set, mpost doesn't put its output in the correct # place. -add_cus_dep('mp', '1', 0, 'mpost'); +add_cus_dep( 'mp', '1', 0, 'mpost' ); sub mpost { my $file = $_[0]; my ($name, $path) = fileparse( $file ); - my $return = system "mpost $file"; + my $return = system "mpost \"$file\""; # Fix the problem that mpost puts its output and log files # in the current directory, not in the auxiliary directory # (which is often the same as the output directory): - if ( ($path ne '') && ($path ne '.\') ) { + if ( ($path ne '') && ($path ne '.\\') && ($path ne './') ) { foreach ( "$name.1", "$name.log" ) { move $_, $aux_dir; } } return $return; |