-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3d31e5c
commit 2e76ebc
Showing
2 changed files
with
29 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,4 @@ | |
|
||
TAGS | ||
build* | ||
gh-pages |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if ! [[ -d "gh-pages" ]] ; then | ||
echo -e "Error, the \"gh-pages\" directory is not present:" | ||
echo -e "git clone --branch=gh-pages [email protected]:libsemigroups/hpcombi.git gh-pages" | ||
exit 1 | ||
fi | ||
|
||
printf "\033[0;32mDeploying updates to GitHub...\033[0m\n" | ||
|
||
mkdir -p build | ||
cd build | ||
if [[ -f Makefile ]] ; then | ||
make clean | ||
fi | ||
cmake .. | ||
make doc | ||
cd .. | ||
cp -r build/doc/html/* gh-pages | ||
cd gh-pages | ||
git add . | ||
msg="rebuilding site $(date)" | ||
if [ -n "$*" ]; then | ||
msg="$*" | ||
fi | ||
git commit -m "$msg" | ||
# git push origin gh-pages |