-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun.sh
executable file
·39 lines (30 loc) · 1.09 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
SRC_DIR="/work/ITK"
BLD_DIR="/work/ITK-bld"
# If the SRC_DIR is not mounted, then this tag will be checked out
GIT_TAG=${GIT_TAG:-"master"}
set -xe
if [ ! -d ${SRC_DIR} ]; then
( git clone https://github.com/InsightSoftwareConsortium/ITK.git ${SRC_DIR} &&
cd ${SRC_DIR} &&
git checkout ${GIT_TAG} &&
if [ -d /tmp/patch ]; then git apply /tmp/patch/*.patch; fi
)
fi
mkdir -p ${BLD_DIR} && \
cd ${BLD_DIR} && \
cmake -G Ninja\
-DITK_BUILD_DOCUMENTATION=ON\
-DITK_DOXYGEN_XML:BOOL=ON\
-DITK_DOXYGEN_SERVER_BASED_SEARCH:BOOL=OFF\
-DBUILD_TESTING:BOOL=OFF \
-DModule_ITKReview:BOOL=ON \
-DModule_SimpleITKFilters=ON \
-DModule_MGHIO:BOOL=ON \
-DModule_GenericLabelInterpolator:BOOL=ON \
-DModule_AdaptiveDenoising:BOOL=ON \
${SRC_DIR} && \
cmake --build . --target Documentation && \
cd ${BLD_DIR}/Utilities/Doxygen && \
tar --exclude=\*.md5 --exclude=\*.map -zcvf /ITKDoxygen.tar.gz ./html && \
tar -zcvf /ITKDoxygenXML.tar.gz ./xml