diff options
| author | steveklabnik <steve@steveklabnik.com> | 2017-03-07 14:49:50 -0500 |
|---|---|---|
| committer | steveklabnik <steve@steveklabnik.com> | 2017-03-20 10:10:15 -0400 |
| commit | 8573a1319a63fa61d1db9b9ff8239b5eeb3c1d56 (patch) | |
| tree | 89da360e820eb616cfa82b4f80221d9de0dd521c | |
| parent | f17965da1e139f7f1f249ebcc3394d13302fc9b0 (diff) | |
| download | rust-8573a1319a63fa61d1db9b9ff8239b5eeb3c1d56.tar.gz rust-8573a1319a63fa61d1db9b9ff8239b5eeb3c1d56.zip | |
build both editions of the book
| -rw-r--r-- | src/bootstrap/doc.rs | 5 | ||||
| -rw-r--r-- | src/bootstrap/step.rs | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/bootstrap/doc.rs b/src/bootstrap/doc.rs index db8ed579cec..3c024f4c4ef 100644 --- a/src/bootstrap/doc.rs +++ b/src/bootstrap/doc.rs @@ -53,6 +53,11 @@ pub fn rustbook(build: &Build, target: &str, name: &str) { .arg(out)); } +pub fn book(build: &Build, target: &str, name: &str) { + rustbook(build, target, &format!("{}/first-edition", name)); + rustbook(build, target, &format!("{}/second-edition", name)); +} + /// Generates all standalone documentation as compiled by the rustdoc in `stage` /// for the `target` into `out`. /// diff --git a/src/bootstrap/step.rs b/src/bootstrap/step.rs index 6b047c62d99..6eb12fed5ab 100644 --- a/src/bootstrap/step.rs +++ b/src/bootstrap/step.rs @@ -581,7 +581,7 @@ pub fn build_rules<'a>(build: &'a Build) -> Rules { .stage(0) }) .default(build.config.docs) - .run(move |s| doc::rustbook(build, s.target, "book")); + .run(move |s| doc::book(build, s.target, "book")); rules.doc("doc-nomicon", "src/doc/nomicon") .dep(move |s| { s.name("tool-rustbook") |
