From e01d32e52d862d590ec23a17d3460066639a3803 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Sun, 31 May 2015 13:40:18 +0200 Subject: cleaning up, removing redundant files, renaming, fixing incorrect licenses --- utils/doxygen-publish.sh | 25 +++++++++++++++++++++++++ utils/test-static-assert.c | 6 ------ 2 files changed, 25 insertions(+), 6 deletions(-) create mode 100755 utils/doxygen-publish.sh delete mode 100644 utils/test-static-assert.c (limited to 'utils') 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 + + + diff --git a/utils/test-static-assert.c b/utils/test-static-assert.c deleted file mode 100644 index 3e612bbc7..000000000 --- a/utils/test-static-assert.c +++ /dev/null @@ -1,6 +0,0 @@ -#include - -static_assert(1, "FAIL"); -int main(int argc, char *argv[]) { - return 0; -} -- cgit v1.2.3