Skip to content

Commit

Permalink
Allow running build-man.sh from any directory
Browse files Browse the repository at this point in the history
Before:

    $ src/doc/build-man.sh
    error: manifest path `../../crates/mdman/Cargo.toml` does not exist

After: works.
  • Loading branch information
dtolnay committed Sep 6, 2020
1 parent cb7ba3d commit 9296544
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/doc/build-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

set -e

cd "$(dirname "${BASH_SOURCE[0]}")"

OPTIONS="--url https://doc.rust-lang.org/cargo/commands/ \
--man rustc:1=https://doc.rust-lang.org/rustc/index.html \
--man rustdoc:1=https://doc.rust-lang.org/rustdoc/index.html"
Expand Down

0 comments on commit 9296544

Please sign in to comment.