Skip to content

Commit 99134ae

Browse files
committed
Auto merge of #8682 - dtolnay:build-man, r=ehuss
Allow running build-man.sh from any directory Before: ```console $ src/doc/build-man.sh error: manifest path `../../crates/mdman/Cargo.toml` does not exist ``` After: works.
2 parents cb7ba3d + 9296544 commit 99134ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/build-man.sh

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
set -e
1414

15+
cd "$(dirname "${BASH_SOURCE[0]}")"
16+
1517
OPTIONS="--url https://doc.rust-lang.org/cargo/commands/ \
1618
--man rustc:1=https://doc.rust-lang.org/rustc/index.html \
1719
--man rustdoc:1=https://doc.rust-lang.org/rustdoc/index.html"

0 commit comments

Comments
 (0)