]> git.proxmox.com Git - rustc.git/blame - src/doc/rust-by-example/deploy.sh
New upstream version 1.27.2+dfsg1
[rustc.git] / src / doc / rust-by-example / deploy.sh
CommitLineData
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
13rev=$(git rev-parse --short HEAD)
14
15cd book
16
17git init
18git config user.name "Steve Klabnik"
19git config user.email "steve@steveklabnik.com"
20git remote add upstream "https://$GITHUB_TOKEN@github.com/rust-lang/rust-by-example.git"
21git fetch upstream && git reset upstream/gh-pages
22
23echo "rustbyexample.com" > CNAME
24
25touch .
26
27git add -A .
28
29git commit -m "rebuild pages at ${rev}"
30git push -q upstream HEAD:gh-pages