build-and-install-openssl.sh, install-cmake-binary.sh: Tweak install scripts

* Consistently use "/usr/src" as download and staging area

* install-cmake-binary: Introduce CMAKE_ROOT var

* build-and-install-openssl: Remove redundant -fPIC flag, download openssl sources using "wget"
This commit is contained in:
Jean-Christophe Fillion-Robin
2018-06-05 13:02:12 -04:00
parent b5f967af66
commit f1a8f69f4d
2 changed files with 11 additions and 9 deletions

View File

@@ -17,17 +17,17 @@ if [[ "${CMAKE_VERSION}" == "" ]]; then
exit 1
fi
cd /tmp
cd /usr/src
filename=cmake-${CMAKE_VERSION}-Centos5-x86_64
url=https://github.com/dockbuild/CMake/releases/download/v${CMAKE_VERSION}/${filename}.tar.gz
CMAKE_ROOT=cmake-${CMAKE_VERSION}-Centos5-x86_64
url=https://github.com/dockbuild/CMake/releases/download/v${CMAKE_VERSION}/${CMAKE_ROOT}.tar.gz
echo "Downloading $url"
curl -# -LO $url
tar -xzvf ${filename}.tar.gz
rm -f ${filename}.tar.gz
tar -xzvf ${CMAKE_ROOT}.tar.gz
rm -f ${CMAKE_ROOT}.tar.gz
cd ${filename}
cd ${CMAKE_ROOT}
rm -rf doc man
rm -rf bin/cmake-gui