Skip to content

Commit

Permalink
Auto merge of #12048 - weihanglo:mdman, r=epage
Browse files Browse the repository at this point in the history
chore: move build-man workflow away from shell
  • Loading branch information
bors committed Apr 28, 2023
2 parents 7a90ba1 + 137c82a commit 393ce5b
Show file tree
Hide file tree
Showing 12 changed files with 138 additions and 518 deletions.
3 changes: 2 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[alias]
unpublished = "run --package xtask-unpublished --"
build-man = "run --package xtask-build-man --"
stale-label = "run --package xtask-stale-label --"
unpublished = "run --package xtask-unpublished --"
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions ci/validate-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,25 @@

set -e

cd src/doc
cargo_man="src/doc"
mdman_man="crates/mdman/doc"

changes=$(git status --porcelain -- .)
changes=$(git status --porcelain -- $cargo_man $mdman_man)
if [ -n "$changes" ]
then
echo "git directory must be clean before running this script."
exit 1
fi

./build-man.sh
cargo build-man

changes=$(git status --porcelain -- .)
changes=$(git status --porcelain -- $cargo_man $mdman_man)
if [ -n "$changes" ]
then
echo "Detected changes of man pages in src/doc:"
echo "Detected changes of man pages:"
echo "$changes"
echo
echo "Please run './build-man.sh' in the src/doc directory to rebuild the"
echo "man pages, and commit the changes."
echo 'Please run `cargo build-man` to rebuild the man pages'
echo "and commit the changes."
exit 1
fi
Loading

0 comments on commit 393ce5b

Please sign in to comment.