File tree Expand file tree Collapse file tree 4 files changed +9
-50
lines changed Expand file tree Collapse file tree 4 files changed +9
-50
lines changed Original file line number Diff line number Diff line change 3
3
4
4
set -e
5
5
6
- cd src/doc
6
+ cargo_man=" src/doc"
7
+ mdman_man=" crates/mdman/doc"
7
8
8
- changes=$( git status --porcelain -- . )
9
+ changes=$( git status --porcelain -- $cargo_man $mdman_man )
9
10
if [ -n " $changes " ]
10
11
then
11
12
echo " git directory must be clean before running this script."
12
13
exit 1
13
14
fi
14
15
15
- ./ build-man.sh
16
+ cargo build-man
16
17
17
- changes=$( git status --porcelain -- . )
18
+ changes=$( git status --porcelain -- $cargo_man $mdman_man )
18
19
if [ -n " $changes " ]
19
20
then
20
- echo " Detected changes of man pages in src/doc :"
21
+ echo " Detected changes of man pages:"
21
22
echo " $changes "
22
23
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."
25
26
exit 1
26
27
fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -50,11 +50,7 @@ directory) to three different formats:
50
50
3 . Plain text (needed for embedded man pages on platforms without man such as
51
51
Windows), saved in [ ` src/doc/man/generated_txt/ ` ] ( man/generated_txt ) .
52
52
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.
58
54
59
55
### SemVer chapter tests
60
56
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments