mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 21:22:40 +00:00
Create directories before executing Pandoc
This commit is contained in:
parent
3e55ab3849
commit
92823d5bc2
1 changed files with 7 additions and 2 deletions
|
@ -333,14 +333,19 @@ class RoboFile extends \Robo\Tasks {
|
||||||
* available in $PATH.
|
* available in $PATH.
|
||||||
*/
|
*/
|
||||||
public function manpage(): Result {
|
public function manpage(): Result {
|
||||||
|
$t = $this->collectionBuilder();
|
||||||
$p = $this->taskParallelExec();
|
$p = $this->taskParallelExec();
|
||||||
$man = [
|
$man = [
|
||||||
'en' => "man1/arsse.1",
|
'en' => "man1/arsse.1",
|
||||||
];
|
];
|
||||||
foreach($man as $src => $out) {
|
foreach($man as $src => $out) {
|
||||||
$p->process("pandoc -s -f markdown-smart -t man -o ".escapeshellarg(BASE."dist/$out")." ".escapeshellarg(BASE."manpages/$src.md"));
|
$src = BASE."manpages/$src.md";
|
||||||
|
$out = BASE."dist/man/$out";
|
||||||
|
$t->addTask($this->taskFilesystemStack()->mkdir(dirname($out), 0755));
|
||||||
|
$p->process("pandoc -s -f markdown-smart -t man -o ".escapeshellarg($out)." ".escapeshellarg($src));
|
||||||
}
|
}
|
||||||
return $p->run();
|
$t->addTask($p);
|
||||||
|
return $t->run();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function changelogParse(string $text, string $targetVersion): array {
|
protected function changelogParse(string $text, string $targetVersion): array {
|
||||||
|
|
Loading…
Reference in a new issue