File tree Expand file tree Collapse file tree 2 files changed +28
-28
lines changed
Expand file tree Collapse file tree 2 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 33# This module should be pulled and run from an ITKModule root directory to generate the Linux python wheels of this module,
44# it is used by the azure-pipeline.yml file contained in ITKModuleTemplate: https://github.com/InsightSoftwareConsortium/ITKModuleTemplate
55
6- # First download doxygen
7- if [[ ! -f doxygen-1.8.11.linux.bin.tar.gz ]]; then
8- mkdir tools
9- curl https://data.kitware.com/api/v1/file/5c0aa4b18d777f2179dd0a71/download -o doxygen-1.8.11.linux.bin.tar.gz
10- tar -xzf doxygen-1.8.11.linux.bin.tar.gz -C tools
11- fi
12- # if doxygen tarball was cached, we need to unzip it
13- if [[ ! -f ./tools/doxygen-1.8.11/bin/doxygen ]]; then
14- mkdir tools
15- tar -xzf doxygen-1.8.11.linux.bin.tar.gz -C tools
16- fi
17- if [[ ! -f ./tools/doxygen-1.8.11/bin/doxygen ]]; then
18- echo " ERROR: can not find required binary './tools/doxygen-1.8.11/bin/doxygen'"
19- exit 255
20- fi
21-
226# Packages distributed by github are in zstd format, so we need to download that binary to uncompress
237if [[ ! -f zstd-1.2.0-linux.tar.gz ]]; then
248 curl https://data.kitware.com/api/v1/file/592dd8068d777f16d01e1a92/download -o zstd-1.2.0-linux.tar.gz
Original file line number Diff line number Diff line change @@ -44,18 +44,34 @@ case $(uname -p) in
4444esac
4545
4646# Install prerequirements
47- if test " ${ARCH} " == " x64" ; then
48- export PATH=/work/tools/doxygen-1.8.11/bin:$PATH
49- if ! type doxygen > /dev/null 2>&1 ; then
50- mkdir -p /work/tools
51- pushd /work/tools > /dev/null 2>&1
52- curl https://data.kitware.com/api/v1/file/5c0aa4b18d777f2179dd0a71/download -o doxygen-1.8.11.linux.bin.tar.gz
53- tar -xvzf doxygen-1.8.11.linux.bin.tar.gz
54- popd > /dev/null 2>&1
55- fi
56- else
57- yum install -y doxygen
58- fi
47+ export PATH=/work/tools/doxygen-1.8.11/bin:$PATH
48+ case $( uname -p) in
49+ i686)
50+ ARCH=x86
51+ ;;
52+ x86_64)
53+ if ! type doxygen > /dev/null 2>&1 ; then
54+ mkdir -p /work/tools
55+ pushd /work/tools > /dev/null 2>&1
56+ curl https://data.kitware.com/api/v1/file/5c0aa4b18d777f2179dd0a71/download -o doxygen-1.8.11.linux.bin.tar.gz
57+ tar -xvzf doxygen-1.8.11.linux.bin.tar.gz
58+ popd > /dev/null 2>&1
59+ fi
60+ ;;
61+ aarch64)
62+ ARCH=aarch64
63+ if ! type doxygen > /dev/null 2>&1 ; then
64+ mkdir -p /work/tools
65+ pushd /work/tools > /dev/null 2>&1
66+ curl https://data.kitware.com/api/v1/file/6086e4b02fa25629b93ac66e/download -o doxygen-1.8.11.linux.aarch64.bin.tar.gz
67+ tar -xvzf doxygen-1.8.11.linux.aarch64.bin.tar.gz
68+ popd > /dev/null 2>&1
69+ fi
70+ ;;
71+ * )
72+ die " Unknown architecture $( uname -p) "
73+ ;;
74+ esac
5975if ! type ninja > /dev/null 2>&1 ; then
6076 git clone git://github.com/ninja-build/ninja.git
6177 pushd ninja
You can’t perform that action at this time.
0 commit comments