Skip to content

Commit e3dec38

Browse files
committed
mdman: use cargo build-man everywhere
1 parent c01bad9 commit e3dec38

File tree

4 files changed

+9
-50
lines changed

4 files changed

+9
-50
lines changed

ci/validate-man.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,25 @@
33

44
set -e
55

6-
cd src/doc
6+
cargo_man="src/doc"
7+
mdman_man="crates/mdman/doc"
78

8-
changes=$(git status --porcelain -- .)
9+
changes=$(git status --porcelain -- $cargo_man $mdman_man)
910
if [ -n "$changes" ]
1011
then
1112
echo "git directory must be clean before running this script."
1213
exit 1
1314
fi
1415

15-
./build-man.sh
16+
cargo build-man
1617

17-
changes=$(git status --porcelain -- .)
18+
changes=$(git status --porcelain -- $cargo_man $mdman_man)
1819
if [ -n "$changes" ]
1920
then
20-
echo "Detected changes of man pages in src/doc:"
21+
echo "Detected changes of man pages:"
2122
echo "$changes"
2223
echo
23-
echo "Please run './build-man.sh' in the src/doc directory to rebuild the"
24-
echo "man pages, and commit the changes."
24+
echo 'Please run `cargo build-man` to rebuild the man pages'
25+
echo "and commit the changes."
2526
exit 1
2627
fi

crates/mdman/build-man.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/doc/README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ directory) to three different formats:
5050
3. Plain text (needed for embedded man pages on platforms without man such as
5151
Windows), saved in [`src/doc/man/generated_txt/`](man/generated_txt).
5252

53-
To rebuild the man pages, run the script `build-man.sh` in the `src/doc` directory.
54-
55-
```console
56-
$ ./build-man.sh
57-
```
53+
To rebuild the man pages, run `cargo build-man` inside the workspace.
5854

5955
### SemVer chapter tests
6056

src/doc/build-man.sh

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)