-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9dba47
commit 1489310
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
||
|
||
|