Commit da4da480 authored by Matthias Redies's avatar Matthias Redies

move to github for speed

parent f5c1d11f
...@@ -2,7 +2,13 @@ hdf5_version=1.10.2 ...@@ -2,7 +2,13 @@ hdf5_version=1.10.2
if [ ! -r CMake-hdf5-${hdf5_version} ] if [ ! -r CMake-hdf5-${hdf5_version} ]
then then
#Get the file with the code #Get the file with the code
curl -LO "http://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-${hdf5_version}/src/CMake-hdf5-${hdf5_version}.tar.gz" curl -LO "https://github.com/MRedies/hdf5-mirror/raw/master/CMake-hdf5-${hdf5_version}.tar.gz"
if [ ! -f CMake-hdf5-${hdf5_version}.tar.gz]; then
echo "No file found try source"
curl -LO "http://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-${hdf5_version}/src/CMake-hdf5-${hdf5_version}.tar.gz"
fi
tar xzf CMake-hdf5-${hdf5_version}.tar.gz tar xzf CMake-hdf5-${hdf5_version}.tar.gz
cd CMake-hdf5-${hdf5_version} cd CMake-hdf5-${hdf5_version}
#copy options.cmake to adjust settings for compilation #copy options.cmake to adjust settings for compilation
......
...@@ -2,12 +2,11 @@ libxc_version=4.2.1 ...@@ -2,12 +2,11 @@ libxc_version=4.2.1
if [ ! -d libxc-${libxc_version} ] if [ ! -d libxc-${libxc_version} ]
then then
#Get the file with the code #Get the file with the code
curl --speed-time 15 --speed-limit 1000 -LO "http://www.tddft.org/programs/octopus/download/libxc/${libxc_version}/libxc-${libxc_version}.tar.gz" curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-${libxc_version}.tar.gz"
# tddft.org is always offline. Hence a backup:
if [ ! -f libxc-${libxc_version}.tar.gz ]; then if [ ! -f libxc-${libxc_version}.tar.gz ]; then
echo "No file found, try mirror" echo "No file found try source"
curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-4.2.1.tar.gz" curl --connect-timeout 10 -LO "http://www.tddft.org/programs/octopus/download/libxc/${libxc_version}/libxc-${libxc_version}.tar.gz"
fi fi
tar xzf libxc-${libxc_version}.tar.gz tar xzf libxc-${libxc_version}.tar.gz
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment