fix(build): Make sure assets/man folder exists before building

manpage.
This commit is contained in:
henil 2021-05-07 10:27:45 +05:30
parent d5433f8f89
commit 23450a708c

View file

@ -94,15 +94,19 @@ end
''' '''
[tasks.manpage] [tasks.manpage]
workspace = false
description = "Use mandown crate to create or update man entry from docs/MANPAGES.md" description = "Use mandown crate to create or update man entry from docs/MANPAGES.md"
script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1" script = '''
root_dir=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}
mkdir -p ${root_dir}/assets/man
mandown ${root_dir}/docs/MANPAGE.md ZELLIJ 1 > ${root_dir}/assets/man/zellij.1
'''
dependencies = ["install-mandown"] dependencies = ["install-mandown"]
[tasks.install-mandown] [tasks.install-mandown]
command = "cargo" command = "cargo"
args = ["install", "mandown"] args = ["install", "mandown"]
# CI Releasing Zellij # CI Releasing Zellij
[tasks.ci-build-release] [tasks.ci-build-release]
workspace = false workspace = false