mirror of
https://github.com/eza-community/eza
synced 2024-10-06 16:09:06 +00:00
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 <sandro@gierens.de> Co-authored-by: Gardouille <gardouille@gmail.com>
This commit is contained in:
parent
036e57d4f6
commit
5115cc559a
2
Justfile
2
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)
|
||||
|
|
Loading…
Reference in a new issue