new tasks to install mandown and generate manpage

This commit is contained in:
NKGoc 2021-05-05 13:20:26 +02:00
parent 6d826dcae0
commit 0003f8268f

View file

@ -64,7 +64,7 @@ args = ["clippy", "--", "@@split(CARGO_MAKE_TASK_ARGS,;)"]
# Release building and installing Zellij
[tasks.install]
workspace = false
dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release", "manpage-install"]
dependencies = ["build-plugins-release", "wasm-opt-plugins", "build-release", "manpage"]
script_runner = "@duckscript"
script = '''
if is_dir ${CARGO_MAKE_TASK_ARGS}
@ -93,10 +93,15 @@ for plugin in ${plugins}
end
'''
[tasks.manpage]
description = "Use mandown crate to create or update man entry from docs/MANPAGES.md"
workspace = false
script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1"
# CI Releasing Zellij
[tasks.ci-build-release]
workspace = false
dependencies = ["setup-cross-compilation", "build-plugins-release", "wasm-opt-plugins"]
dependencies = ["setup-cross-compilation", "install-mandown", "build-plugins-release", "wasm-opt-plugins", "ci-manpage"]
command = "cross"
args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"]
@ -104,6 +109,14 @@ args = ["build", "--verbose", "--release", "--target", "${CARGO_MAKE_TASK_ARGS}"
command = "cargo"
args = ["install", "cross"]
[tasks.install-mandown]
command = "cargo"
args = ["install", "mandown"]
[tasks.ci-manpage]
script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1"
dependencies = ["install-mandown"]
# Publishing Zellij
[tasks.publish]
clear = true
@ -127,7 +140,4 @@ args = ["publish"]
command = "cargo"
args = ["publish"]
[tasks.manpage]
description = "Use mandown crate to create or update man entry from docs/MANPAGES.md"
workspace = false
script = "mandown docs/MANPAGE.md ZELLIJ 1 > assets/man/zellij.1"