Skip to content

Commit 9086cb4

Browse files
committed
Trying doxygen 1.9.0 on centos-7
Signed-off-by: Michael Dolan <[email protected]>
1 parent 4a879cc commit 9086cb4

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

share/ci/scripts/linux/dnf/install_doxygen.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ set -ex
66

77
DOXYGEN_VERSION="$1"
88

9+
DOXYGEN_MAJOR_MINOR=$(echo "${DOXYGEN_VERSION}" | cut -d. -f-2)
10+
DOXYGEN_MAJOR=$(echo "${DOXYGEN_VERSION}" | cut -d. -f-1)
11+
DOXYGEN_MINOR=$(echo "${DOXYGEN_MAJOR_MINOR}" | cut -d. -f2-)
12+
DOXYGEN_PATCH=$(echo "${DOXYGEN_VERSION}" | cut -d. -f3-)
13+
DOXYGEN_VERSION_U="${DOXYGEN_MAJOR}_${DOXYGEN_MINOR}_${DOXYGEN_PATCH}"
14+
915
if command -v dnf >/dev/null; then
10-
if [ "$DOXYGEN_VERSION" = "latest" ]; then
16+
if [ "$DOXYGEN_VERSION" == "latest" ]; then
1117
dnf install -y doxygen
1218
else
1319
dnf install -y doxygen-${DOXYGEN_VERSION}
@@ -18,19 +24,21 @@ else
1824
source /etc/os-release
1925
if [ "$ID" = "centos" ]; then
2026
# CentOS-7 was known to be compatible with this doxygen version
21-
DOXYGEN_VERSION=1.8.5
27+
DOXYGEN_VERSION=1.9.0
28+
DOXYGEN_VERSION_U=1_9_0
29+
2230
elif [ "$DOXYGEN_VERSION" = "latest" ]; then
2331
# Get latest doxygen version from GH
24-
DOXYGEN_VERSION=$(
32+
DOXYGEN_VERSION_U=$(
2533
curl --silent https://api.github.com/repos/doxygen/doxygen/releases/latest | \
2634
grep '"tag_name":' | \
27-
sed -E 's/.*"Release_([0-9_]+)".*/\1/' | \
28-
tr '_' '.'
35+
sed -E 's/.*"Release_([0-9_]+)".*/\1/'
2936
)
37+
DOXYGEN_VERSION=$(tr $DOXYGEN_VERSION_U '_' '.')
3038
fi
3139

3240
# Manual install
33-
wget https://doxygen.nl/files/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
41+
wget https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION_U}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
3442
tar -xzf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
3543
cp doxygen-${DOXYGEN_VERSION}/bin/doxygen /usr/local/bin/
3644
fi

0 commit comments

Comments
 (0)