Skip to content

Commit

Permalink
#222 pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmueller committed Nov 4, 2018
1 parent 8f0fcc9 commit b7203d4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/pandoc.gradle
Expand Up @@ -12,12 +12,14 @@ task convertToDocx (

workingDir "$targetDir/docbook"
executable = "pandoc"
new File("$targetDir/docx/").mkdirs()
args = ['-r','docbook',
'-t','docx',
'-o',"../docx/$targetFile",
sourceFile]
}
}
doFirst {
new File("$targetDir/docx/").mkdirs()
}
}
//end::convertToDocx[]

Expand All @@ -35,13 +37,15 @@ task convertToEpub (

workingDir "$targetDir/docbook"
executable = "pandoc"
new File("$targetDir/epub/").mkdirs()
args = ['-r','docbook',
'-t','epub',
'-o',"../epub/$targetFile",
sourceFile]

}
doFirst {
new File("$targetDir/epub/").mkdirs()
}
}
//end::convertToEpub[]
project.afterEvaluate {
Expand Down

0 comments on commit b7203d4

Please sign in to comment.