diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-09 08:33:55 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-09-09 08:33:55 +0100 |
commit | 159004bc7f70615d7bcc9469b86131fef1dcf147 (patch) | |
tree | 7e34fe5a66cdcaae25e04f144d6299a43201f31d /tools/update_docs | |
parent | 6e4681a86fc1d118571dac06ffa811a988a1066a (diff) | |
download | YAGE-159004bc7f70615d7bcc9469b86131fef1dcf147.tar.gz YAGE-159004bc7f70615d7bcc9469b86131fef1dcf147.zip |
removed sourceme and added tools
Diffstat (limited to 'tools/update_docs')
-rwxr-xr-x | tools/update_docs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/update_docs b/tools/update_docs new file mode 100755 index 00000000..113fe39e --- /dev/null +++ b/tools/update_docs @@ -0,0 +1,27 @@ +#!/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: " +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" |