Debian Codegraph @

monero/utils/doxygen-publish.sh

raw symbols SCIP
1 #!/bin/bashscip-shell filesystem . . `/bin/bash`. -e
2
3 # maintainer (ask me any questions): rfree
4
5 if [[ ! -r "Doxyfile" ]] ; then
6 echoscip-shell system . . echo. "Error, can not read the Doxyfile - make sure to run this script from top of monero project, where the Doxyfile file is located"
7 exit 1
8 fi
9
10 wwwdir="$HOME/monero-www/"
11 if [[ ! -w "$wwwdir" ]] ; then
12 echoscip-shell system . . echo. "Error, can not write into wwwdir=$wwwdir. It should be a directory readable/connected to your webserver, or a symlink to such directory"
13 exit 1
14 fi
15
16 if [[ ! -d "$wwwdir/doc" ]] ; then
17 echoscip-shell system . . echo. "Creating subdirs"
18 mkdirscip-shell system . . mkdir. "$wwwdir/doc"
19 fi
20
21 echoscip-shell system . . echo. "Generating:"
22 doxygen Doxyfile && echoscip-shell system . . echo. "Backup previous version:" && rmscip-shell system . . rm. -rf ~/monero-www-previous && mvscip-shell system . . mv. "$wwwdir/doc" ~/monero-www-previous && cpscip-shell system . . cp. -ar doc/ "$wwwdir/" && echoscip-shell system . . echo. "Done, builded and copied to public - the doxygen docs" && echoscip-shell system . . echo. "size:" && duscip-shell system . . du. -Dsh "$wwwdir/" && echoscip-shell system . . echo. "files:" && findscip-shell system . . find. "$wwwdir/" | wcscip-shell system . . wc. -l
23
24
25