1 #==============================================================================
2 # Copyright (c) 2017 Daniel James
4 # Use, modification and distribution is subject to the Boost Software
5 # License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
6 # http://www.boost.org/LICENSE_1_0.txt)
7 #==============================================================================
12 # Change to the quickbook root directory
17 remote=git@github.com:boostorg/quickbook.git
21 git fetch "$remote" "$branch:$branch"
22 b2 -aq doc//fully-standalone
23 write_fast_import gh-pages | git fast-import --date-format=now --quiet
24 git push "$remote" "$branch"
28 committer="$(git config user.name) <$(git config user.email)>"
29 commit_message="Rebuild documentation"
33 echo "commit refs/heads/${branch}"
34 echo "committer ${committer} now"
35 echo "data ${#commit_message}"
40 # Delete everything and rebuild tree from scratch.
43 # Copy all files from HEAD
45 while read mode type hash path ; do
46 echo "M $mode $hash $path"
49 # Preserve index.html from the github pages branch
50 git ls-tree $branch -- index.html |
51 while read mode type hash path ; do
52 echo "M $mode $hash $path"
55 # Check in documentation
56 find doc/html -type f | while read path; do
58 echo "M 100644 inline $path"