Lines Matching +full:gh +full:- +full:pages
8 # http://www.apache.org/licenses/LICENSE-2.0
16 set -o errexit
17 set -o nounset
18 set -o xtrace
19 set -o pipefail
21 # Update the gh-pages branch. Note that `cargo doc` is **not deterministic** so
23 readonly RUST_BRANCH=${1:-main}
24 readonly RUST_GH_BRANCH=gh-pages
26 if [ -z "${FORCE+x}" ]; then
27 …readonly PREV_COMMIT=$(git log --oneline -n 1 ${RUST_GH_BRANCH} | sed 's/.*branch at \([0-9a-f]*\)…
28 readonly CHANGES=$(git diff "${PREV_COMMIT}..${RUST_BRANCH}" | grep -e '[+-]//[/!]')
30 if [ -z "${CHANGES}" ]; then
37 readonly RUST_BRANCH_SHA1=$(git rev-parse --short HEAD)
38 readonly RUST_BRANCH_SUBJECT=$(git log -n 1 --format=format:%s)
39 readonly COMMIT_MESSAGE=$(cat <<-END
42 Auto-generated from commit ${RUST_BRANCH_SHA1} ("${RUST_BRANCH_SUBJECT}").
46 readonly TGZ_FILE="/tmp/coset-doc-${RUST_BRANCH_SHA1}.tgz"
49 rm -rf target/doc
50 cargo doc --no-deps
60 rm -rf ${DOC_DIR}
69 git commit --message="${COMMIT_MESSAGE}"