Skip to content

Commit 9296544

Browse files
committed
Allow running build-man.sh from any directory
Before: $ src/doc/build-man.sh error: manifest path `../../crates/mdman/Cargo.toml` does not exist After: works.
1 parent cb7ba3d commit 9296544

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/doc/build-man.sh

Lines changed: 2 additions & 0 deletions
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)