From 3e55ab3849d6a5c4d3067238944763c673d09205 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sat, 29 May 2021 15:44:51 -0400 Subject: [PATCH] Move man pages to their own directory --- .gitignore | 1 + RoboFile.php | 12 +++++++++--- docs/manpage.md => manpages/en.md | 0 3 files changed, 10 insertions(+), 3 deletions(-) rename docs/manpage.md => manpages/en.md (100%) diff --git a/.gitignore b/.gitignore index b4883827..f81d4dcd 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ /dist/arch/arsse/ /dist/arch/src/ /dist/arch/pkg/ +/dist/man/ /arsse.db* /config.php /.php_cs.cache diff --git a/RoboFile.php b/RoboFile.php index 1049f232..964164ad 100644 --- a/RoboFile.php +++ b/RoboFile.php @@ -204,6 +204,7 @@ class RoboFile extends \Robo\Tasks { $dir."RoboFile.php", $dir."CONTRIBUTING.md", $dir."docs", + $dir."manpages", $dir."tests", $dir."vendor-bin", $dir."vendor/bin", @@ -332,9 +333,14 @@ class RoboFile extends \Robo\Tasks { * available in $PATH. */ public function manpage(): Result { - $src = BASE."docs/manpage.md"; - $out = BASE."dist/manpage"; - return $this->taskExec("pandoc -s -f markdown-smart -t man -o ".escapeshellarg($out)." ".escapeshellarg($src))->run(); + $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")); + } + return $p->run(); } protected function changelogParse(string $text, string $targetVersion): array { diff --git a/docs/manpage.md b/manpages/en.md similarity index 100% rename from docs/manpage.md rename to manpages/en.md