Skip to content

Commit

Permalink
Handle -o parameter for makeindex
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPirates committed Mar 6, 2024
1 parent 1bea6ca commit 0733814
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ class MakeindexCommandLineState(

val command = ParametersListUtil.parse(commandLineArguments ?: "").apply {
add(0, indexProgram.executableName)
add(indexFilename)
// The -o parameter overrides the output file name, so then we shouldn't append it a second time
if (commandLineArguments == null || commandLineArguments.contains("-o").not()) {
add(indexFilename)
}
}
val commandLine = GeneralCommandLine(command).withWorkDirectory(workingDirectory?.path)

Expand Down

0 comments on commit 0733814

Please sign in to comment.