mirror of
https://code.mensbeam.com/MensBeam/Arsse.git
synced 2024-12-22 13:12:41 +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.
|
||||
*/
|
||||
public function manpage(): Result {
|
||||
$t = $this->collectionBuilder();
|
||||
$p = $this->taskParallelExec();
|
||||
$man = [
|
||||
'en' => "man1/arsse.1",
|
||||
];
|
||||
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 {
|
||||
|
|
Loading…
Reference in a new issue