-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync with changes in other repos
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
export GIT_REPO_DIR=${PWD} | ||
echo "Set git email and name" | ||
git config user.email "[email protected]" | ||
git config user.name "Kevin Sheppard" | ||
|
@@ -11,22 +12,24 @@ rm -rf devel | |
echo "Make a new devel" | ||
mkdir devel | ||
echo "Checking for tag" | ||
GIT_TAG=$(git name-rev --name-only --tags HEAD) | ||
if [[ ${GIT_TAG} == "undefined" ]]; then | ||
echo "Tag is ${GIT_TAG}. Not updating main documents" | ||
else | ||
if [[ -n "${GIT_TAG}" ]]; then | ||
echo "Tag ${GIT_TAG} is defined" | ||
echo "Copy docs to root" | ||
echo cp -r ${PWD}/doc/build/html/* ${PWD}/ | ||
cp -r ${PWD}/doc/build/html/* ${PWD} | ||
git add Documentation/\*.html | ||
git add Documentation/\*.css | ||
git add Documentation/\*.js | ||
else | ||
echo "Tag is ${GIT_TAG}. Not updating main documents" | ||
fi | ||
echo "Copy docs to devel" | ||
echo cp -r ${PWD}/doc/build/html/* ${PWD}/devel/ | ||
cp -r ${PWD}/doc/build/html/* ${PWD}/devel/ | ||
echo "Add devel" | ||
echo "Clean up docs" | ||
cd ${GIT_REPO_DIR}/doc | ||
make clean && git clean -xfd | ||
echo "Add files" | ||
cd ${GIT_REPO_DIR} | ||
git add . | ||
# Ensure key files are added | ||
git add devel/**/* || true | ||
git add **/*.html || true | ||
git add **/*.ipynb || true | ||
|