build both editions of the book

This commit is contained in:
steveklabnik 2017-03-07 14:49:50 -05:00
parent f17965da1e
commit 8573a1319a
2 changed files with 6 additions and 1 deletions

View File

@ -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`.
///

View File

@ -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")