aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-03 13:10:30 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-03 13:10:30 +0100
commitd4eae8dfc1fcf68e198205b9bab7574b4c17cc66 (patch)
treeecfe9abb132035e858bb60c312e3202a2f4b6431 /scripts
parent211d19aafe552f2c2264d301dfce0b0e6f2792a6 (diff)
downloadYAGE-d4eae8dfc1fcf68e198205b9bab7574b4c17cc66.tar.gz
YAGE-d4eae8dfc1fcf68e198205b9bab7574b4c17cc66.zip
Improving script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_docs36
1 files changed, 25 insertions, 11 deletions
diff --git a/scripts/update_docs b/scripts/update_docs
index 6864d6d3..113fe39e 100755
--- a/scripts/update_docs
+++ b/scripts/update_docs
@@ -1,13 +1,27 @@
#!/usr/bin/env bash
-doxygen ./docs/Doxyfile
-git clone -b gh-pages git@github.com:ymherklotz/YAGE
-cd YAGE/
-git rm -rf *
-mv ../html/* .
-rm -rf ../html
-git add -A
-git commit -a -m 'Updating docs'
-git push origin gh-pages
-cd ..
-rm -rf YAGE
+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"