Skip to content

Commit

Permalink
Update doxygen to 1.11.0 (#2453)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl authored May 29, 2024
1 parent 71beb5e commit 2b8c6a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,19 @@ def install_mtocpp():

def install_doxygen():
"""Get a more recent doxygen"""
version = "1.9.7"
version = "1.11.0"
release = f"Release_{version.replace('.', '_')}"
filename = f"doxygen-{version}.linux.bin.tar.gz"
doxygen_exe = os.path.join(
amici_dir, "ThirdParty", f"doxygen-{version}", "bin", "doxygen"
)
# to create a symlink to doxygen in a location that is already on PATH
some_dir_on_path = os.environ["PATH"].split(os.pathsep)[0]
cmd = (
f"cd '{os.path.join(amici_dir, 'ThirdParty')}' "
f"&& wget 'https://www.doxygen.nl/files/"
f"doxygen-{version}.linux.bin.tar.gz' "
f"&& tar -xzf doxygen-{version}.linux.bin.tar.gz "
f"&& wget 'https://github.com/doxygen/doxygen/releases/download/"
f"{release}/{filename}' "
f"&& tar -xzf '{filename}' "
f"&& ln -sf '{doxygen_exe}' '{some_dir_on_path}'"
)
subprocess.run(cmd, shell=True, check=True)
Expand Down
2 changes: 1 addition & 1 deletion scripts/downloadAndBuildDoxygen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ DOXYGEN_DIR="${AMICI_PATH}"/ThirdParty/doxygen
cd "${AMICI_PATH}"/ThirdParty
if [[ ! -d ${DOXYGEN_DIR} ]]; then
git clone --single-branch \
--branch Release_1_10_0 \
--branch Release_1_11_0 \
--depth 1 \
-c advice.detachedHead=false \
https://github.com/doxygen/doxygen.git "${DOXYGEN_DIR}"
Expand Down

0 comments on commit 2b8c6a2

Please sign in to comment.