fix(build): Make sure assets/man folder exists before building
manpage.
This commit is contained in:
parent
d5433f8f89
commit
23450a708c
1 changed files with 6 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue