File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
share/ci/scripts/linux/dnf Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change 66
77DOXYGEN_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+
915if 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}
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
You can’t perform that action at this time.
0 commit comments