Compare commits
No commits in common. '411a1fcebf0e740c785abb81fb1f87a58ec56df4' and 'f555d3a403b6425004f40acb7efaab2849c2d85d' have entirely different histories.
411a1fcebf
...
f555d3a403
@ -1,15 +1,14 @@
|
||||
GEN_PATH="/docs/doxygen"
|
||||
|
||||
# Generate doxygen.
|
||||
generate() {
|
||||
|
||||
echo "- generating doxygen"
|
||||
if [ ! -f "$1"/Doxyfile ]; then
|
||||
echo "doxygen generator error : file $1/Doxyfile is missing" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f "/drone/src/$1/Doxyfile" ];
|
||||
then
|
||||
cd /drone/src/$1/ && doxygen Doxyfile
|
||||
else
|
||||
# Create empty directory for rsync to delete remote content.
|
||||
rm -Rf $GEN_PATH
|
||||
mkdir -p $GEN_PATH
|
||||
fi
|
||||
doxygen "$1"/Doxyfile
|
||||
|
||||
mkdir -p $GEN_PATH
|
||||
mv html/* $GEN_PATH
|
||||
}
|
||||
|
Loading…
Reference in new issue