aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/update_docs
blob: 113fe39e1a28a78285a063acea113731dccbaa2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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"