aboutsummaryrefslogtreecommitdiff
path: root/tools/doxygen-publish.sh
diff options
context:
space:
mode:
authorrfree2monero <rfreemonero@op.pl>2015-04-01 19:22:25 +0200
committerrfree2monero <rfreemonero@op.pl>2015-04-01 19:22:25 +0200
commit1489310d5392a55de225ea55a0ebd90fc4dc7b1a (patch)
treeb0ef857d6d06d430a3a46cae4e577de0958510a9 /tools/doxygen-publish.sh
parentadded windows_stream.* console colors (diff)
downloadmonero-1489310d5392a55de225ea55a0ebd90fc4dc7b1a.tar.xz
doxygen related tool
Diffstat (limited to 'tools/doxygen-publish.sh')
-rwxr-xr-xtools/doxygen-publish.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/doxygen-publish.sh b/tools/doxygen-publish.sh
new file mode 100755
index 000000000..ad02e2834
--- /dev/null
+++ b/tools/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
+
+
+