]>
Commit | Line | Data |
---|---|---|
2c00a5a8 XL |
1 | # Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT |
2 | # file at the top-level directory of this distribution and at | |
3 | # http://rust-lang.org/COPYRIGHT. | |
4 | # | |
5 | # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | # option. This file may not be copied, modified, or distributed | |
9 | # except according to those terms. | |
10 | ||
11 | #!/bin/bash | |
12 | ||
13 | rev=$(git rev-parse --short HEAD) | |
14 | ||
15 | cd book | |
16 | ||
17 | git init | |
18 | git config user.name "Steve Klabnik" | |
19 | git config user.email "steve@steveklabnik.com" | |
20 | git remote add upstream "https://$GITHUB_TOKEN@github.com/rust-lang/rust-by-example.git" | |
21 | git fetch upstream && git reset upstream/gh-pages | |
22 | ||
23 | echo "rustbyexample.com" > CNAME | |
24 | ||
25 | touch . | |
26 | ||
27 | git add -A . | |
28 | ||
29 | git commit -m "rebuild pages at ${rev}" | |
30 | git push -q upstream HEAD:gh-pages |