File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11#! /bin/sh
22
3- # This script will build the documentation from the current "src" branch and push it to the "master" branch.
4- # "mkdocs" must be available, and you must be in a clean git environment ("git diff" should print nothing).
3+ # This script will build the documentation from the current "src" branch. "mkdocs" must be available, and
4+ # you must be in a clean git environment ("git diff" should print nothing). The java-docs folder in the
5+ # master branch will not be replaced with the corresponding folder build from the src branch, which is just
6+ # a placeholder.
57
68git checkout src
79git pull
@@ -22,9 +24,13 @@ mv site/ /tmp/tmp-folder-for-bullet-docs/
2224echo Checking out master...
2325git checkout master
2426git pull
25- # Carefully delete everything in this folder
27+ # Save the JavaDocs currently in master branch
28+ mv java-docs/ /tmp/tmp-folder-for-bullet-docs/
2629rm -rf ./*
2730cp -r /tmp/tmp-folder-for-bullet-docs/site/ ./
31+ # Delete fake java-docs and replace with saved ones
32+ rm -rf ./java-docs/
33+ mv /tmp/tmp-folder-for-bullet-docs/java-docs/ ./
2834rm -rf /tmp/tmp-folder-for-bullet-docs/
2935git add -A
3036git commit -m " Build at ${COMMIT} "
You can’t perform that action at this time.
0 commit comments