Skip to content

Commit fe3d031

Browse files
committed
Try latest yum install of doxygen
Signed-off-by: Michael Dolan <[email protected]>
1 parent 9086cb4 commit fe3d031

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

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

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,13 @@ 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-
159
if command -v dnf >/dev/null; then
1610
if [ "$DOXYGEN_VERSION" == "latest" ]; then
1711
dnf install -y doxygen
1812
else
1913
dnf install -y doxygen-${DOXYGEN_VERSION}
2014
fi
21-
else
22-
# Is some version of doxygen already available?
23-
if command -v doxygen >/dev/null; then
24-
source /etc/os-release
25-
if [ "$ID" = "centos" ]; then
26-
# CentOS-7 was known to be compatible with this doxygen version
27-
DOXYGEN_VERSION=1.9.0
28-
DOXYGEN_VERSION_U=1_9_0
29-
30-
elif [ "$DOXYGEN_VERSION" = "latest" ]; then
31-
# Get latest doxygen version from GH
32-
DOXYGEN_VERSION_U=$(
33-
curl --silent https://api.github.com/repos/doxygen/doxygen/releases/latest | \
34-
grep '"tag_name":' | \
35-
sed -E 's/.*"Release_([0-9_]+)".*/\1/'
36-
)
37-
DOXYGEN_VERSION=$(tr $DOXYGEN_VERSION_U '_' '.')
38-
fi
39-
40-
# Manual install
41-
wget https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION_U}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
42-
tar -xzf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz
43-
cp doxygen-${DOXYGEN_VERSION}/bin/doxygen /usr/local/bin/
44-
fi
15+
elif command -v doxygen >/dev/null; then
16+
# Get any working version...
17+
yum install -y doxygen
4518
fi

0 commit comments

Comments
 (0)