diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-05-31 13:44:29 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-05-31 13:44:30 +0200 |
commit | ee0997529ec015dfc4dd0061c9685bf917fb4827 (patch) | |
tree | c2d8a6539b2c86613b9ca2936848edecee96f22c /utils/doxygen-publish.sh | |
parent | Merge pull request #296 (diff) | |
parent | cleaning up, removing redundant files, renaming, fixing incorrect licenses (diff) | |
download | monero-ee0997529ec015dfc4dd0061c9685bf917fb4827.tar.xz |
Merge pull request #300
e01d32e cleaning up, removing redundant files, renaming, fixing incorrect licenses (Riccardo Spagni)
dfd53b3 readme updates: added sponsors, fixed build instructions (Riccardo Spagni)
Diffstat (limited to 'utils/doxygen-publish.sh')
-rwxr-xr-x | utils/doxygen-publish.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/doxygen-publish.sh b/utils/doxygen-publish.sh new file mode 100755 index 000000000..ad02e2834 --- /dev/null +++ b/utils/doxygen-publish.sh @@ -0,0 +1,25 @@ +#!/bin/bash -e + +# maintainer (ask me any questions): rfree + +if [[ ! -r "Doxyfile" ]] ; then + echo "Error, can not read the Doxyfile - make sure to run this script from top of monero project, where the Doxyfile file is located" + exit 1 +fi + +wwwdir="$HOME/monero-www/" +if [[ ! -w "$wwwdir" ]] ; then + echo "Error, can not write into wwwdir=$wwwdir. It should be a directory readable/connected to your webserver, or a symlink to such directory" + exit 1 +fi + +if [[ ! -d "$wwwdir/doc" ]] ; then + echo "Creating subdirs" + mkdir "$wwwdir/doc" +fi + +echo "Generating:" +doxygen Doxyfile && echo "Backup previous version:" && rm -rf ~/monero-www-previous && mv "$wwwdir/doc" ~/monero-www-previous && cp -ar doc/ "$wwwdir/" && echo "Done, builded and copied to public - the doxygen docs" && echo "size:" && du -Dsh "$wwwdir/" && echo "files:" && find "$wwwdir/" | wc -l + + + |