aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-21 23:42:30 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-21 23:42:30 +0100
commit8a78e678b7df0bf8221280f0058e2db0381b3ffa (patch)
treeb51ff90408c1644ea703046a30a1bcbaf985e9a0 /tools
parent3115da468b465238b5d5c09cc30352dcb3b00370 (diff)
downloadYAGE-8a78e678b7df0bf8221280f0058e2db0381b3ffa.tar.gz
YAGE-8a78e678b7df0bf8221280f0058e2db0381b3ffa.zip
#11: Building, #10: Added GLFW
Diffstat (limited to 'tools')
-rwxr-xr-xtools/update_docs32
1 files changed, 9 insertions, 23 deletions
diff --git a/tools/update_docs b/tools/update_docs
index 113fe39e..ff998368 100755
--- a/tools/update_docs
+++ b/tools/update_docs
@@ -1,27 +1,13 @@
#!/usr/bin/env bash
-printf "running doxygen on all files in %s: " $( pwd )
doxygen ./docs/Doxyfile >/dev/null 2>&1
-printf "Done\n"
-printf "cloning gh-pages from git@github.com:ymherklotz/YAGE: "
-git clone -b gh-pages git@github.com:ymherklotz/YAGE >/dev/null 2>&1
-printf "Done\n"
-printf "updating repository: "
-cd YAGE/ >/dev/null 2>&1
-git rm -rf * >/dev/null 2>&1
-mv ../html/* . >/dev/null 2>&1
-rm -rf ../html >/dev/null 2>&1
-printf "Done\n"
-printf "adding files: "
+cd html >/dev/null 2>&1
+git init >/dev/null 2>&1
+git config user.name "TravisBot" >/dev/null 2>&1
+git config user.email "" >/dev/null 2>&1
+git remote add upstream "https://$GH_TOKEN@github.com/ymherklotz/YAGE.git" >/dev/null 2>&1
+git fetch upstream >/dev/null 2>&1
+git reset upstream/gh-pages >/dev/null 2>&1
git add -A >/dev/null 2>&1
-printf "Done\n"
-printf "commiting files: "
-git commit -a -m 'Updating docs' >/dev/null 2>&1
-printf "Done\n"
-printf "pushing commit: "
-git push origin gh-pages >/dev/null 2>&1
-printf "Done\n"
-printf "cleaning up files: "
-cd .. >/dev/null 2>&1
-rm -rf YAGE >/dev/null 2>&1
-printf "Done\n"
+git commit -m "Rebuilding documentation" >/dev/null 2>&1
+git push -q upstream HEAD:gh-pages >/dev/null 2>&1