swh:1:snp:e6d42e6731ce66e3c09de07ac49964c03139e990
Raw File
Tip revision: 1f34654a48053d4e8cd7068fa1dda7e529e9ff71 authored by Konrad Werys on 26 October 2019, 17:46:45 UTC
ci: cleanup
Tip revision: 1f34654
downloadITK_linux_osx.sh
#!/bin/bash

# TODO: download itk binaries from https://github.com/MRKonrad/build-itk. Problem:
# /usr/bin/ld: /home/travis/build/MRKonrad/ITK_install/lib/libitksys-4.13.a(SystemTools.cxx.o): unrecognized relocation (0x2a) in section `.text'
# /usr/bin/ld: final link failed: Bad value

mysystem=$(uname)
export mysystem

if [ "${mysystem}" == "Darwin" ]
then
  export mysystem="osx";
fi

if [ "${mysystem}" == "Linux" ]
then
  export mysystem="linux";
fi

echo ${mysystem}
cd ../..

#mkdir ITK_install
#cd ITK_install
#curl -L -O https://github.com/MRKonrad/build-itk/releases/download/itk_v4.13.2/itk_v4.13.2_${mysystem}_g++_CXX98.zip
#unzip -a -q itk_v4.13.2_${mysystem}_g++_CXX98.zip
#rm itk_v4.13.2_${mysystem}_g++_CXX98.zip

curl -L -O http://mrkonrad.github.io/MRKonrad/files/ITK_built/ITK413_${mysystem}_install.zip
unzip -a -q ITK413_${mysystem}_install.zip
rm ITK413_${mysystem}_install.zip

echo "ITK binaries downloaded"
back to top