Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Commit

Permalink
Fix: [release-docs] support for cmake docs target
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Dec 12, 2020
1 parent dc7725f commit 08a7540
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions release-docs/files/run.sh
Expand Up @@ -15,25 +15,26 @@ echo "Creating docs"
echo " Source: ${BASENAME}"
echo ""

mkdir -p objs
VERSION=${VERSION} doxygen

if [ -e "CMakeLists.txt" ]; then
(
mkdir build
cd build
cmake ..
make script_window || true
make docs || true
)
mv build/docs/source docs/source
mv build/docs/ai-api docs/aidocs
mv build/docs/gs-api docs/gamedocs
else
mkdir -p objs
VERSION=${VERSION} doxygen
(
cd src/script/api
VERSION=${VERSION} doxygen Doxyfile_AI
VERSION=${VERSION} doxygen Doxyfile_Game
)
GENERATED_API_DIR=$(pwd)/build/generated/script/api
fi

(
cd src/script/api
VERSION=${VERSION} GENERATED_API_DIR=${GENERATED_API_DIR} doxygen Doxyfile_AI
VERSION=${VERSION} GENERATED_API_DIR=${GENERATED_API_DIR} doxygen Doxyfile_Game
)

# Fixing a bug in a Debian patch on Doxygen
# https://bugs.launchpad.net/ubuntu/+source/doxygen/+bug/1631169
cp docs/source/html/dynsections.js docs/aidocs/html/
Expand Down

0 comments on commit 08a7540

Please sign in to comment.