mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #5263 from tk0miya/create_empty_ind_file_by_perl
latex: Create an empty .ind file by perl (for Windows)
This commit is contained in:
commit
25f6563168
@ -11,7 +11,18 @@ $pdflatex = 'xelatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
|
||||
$lualatex = 'lualatex ' . $ENV{'LATEXOPTS'} . ' %O %S';
|
||||
$xelatex = 'xelatex --no-pdf ' . $ENV{'LATEXOPTS'} . ' %O %S';
|
||||
{% if xindy_use -%}
|
||||
$makeindex = '[ ! -s %S ] && : > %D || xindy ' . $ENV{'XINDYOPTS'} . ' %O -o %D %S';
|
||||
$makeindex = 'internal xindy ' . $ENV{'XINDYOPTS'} . ' %O -o %D %S';
|
||||
sub xindy {
|
||||
my @args = @_;
|
||||
if (-z $args[-1]) {
|
||||
# create an empty .ind file if .idx is empty
|
||||
open(FH, ">" . $args[-2]);
|
||||
close(FH);
|
||||
return 0;
|
||||
} else {
|
||||
return system("xindy", @args);
|
||||
}
|
||||
}
|
||||
{% else -%}
|
||||
$makeindex = 'makeindex -s python.ist %O -o %D %S';
|
||||
{% endif -%}
|
||||
|
Loading…
Reference in New Issue
Block a user