From 5115cc559a9f5a905646da2a0c1d0f9101e2722e Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 2 Oct 2023 17:02:36 +0200 Subject: [PATCH] fix: Refactor sed command to build manpages This also avoid "useless cat" and allow `just` command to build manpages. Resolves #458 Co-authored-by: gierens Co-authored-by: Gardouille --- Justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Justfile b/Justfile index 9fb02618..198c629c 100644 --- a/Justfile +++ b/Justfile @@ -76,7 +76,7 @@ all-release: build-release test-release mkdir -p "${CARGO_TARGET_DIR:-target}/man" version=$(awk 'BEGIN { FS = "\"" } ; /^version/ { print $2 ; exit }' Cargo.toml); \ for page in eza.1 eza_colors.5 eza_colors-explanation.5; do \ - pandoc --standalone -f markdown -t man <(cat "man/${page}.md" | sed "s/\$version/v${version}/g") > "${CARGO_TARGET_DIR:-target}/man/${page}"; \ + sed "s/\$version/v${version}/g" "man/${page}.md" | pandoc --standalone -f markdown -t man > "${CARGO_TARGET_DIR:-target}/man/${page}"; \ done; # build and preview the main man page (eza.1)