Commit f409ae99 authored by Matthias Redies's avatar Matthias Redies

added mirror for libxc, since tddft.org is aweful

parent ff4216a5
...@@ -2,7 +2,14 @@ libxc_version=4.2.1 ...@@ -2,7 +2,14 @@ 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 -LO "http://www.tddft.org/programs/octopus/download/libxc/${libxc_version}/libxc-${libxc_version}.tar.gz" curl --connect-timeout 10 -LO "http://www.tddft.org/programs/octopus/download/libxc/${libxc_version}/libxc-${libxc_version}.tar.gz"
# tddft.org is always offline. Hence a backup:
if [ ! -f libxc-${libxc_version}.tar.gz ]; then
echo "No file found, try mirror"
curl --connect-timeout 10 -LO "https://github.com/MRedies/libxc-mirror/raw/master/libxc-4.2.1.tar.gz"
fi
tar xzf libxc-${libxc_version}.tar.gz tar xzf libxc-${libxc_version}.tar.gz
cd libxc-${libxc_version} cd libxc-${libxc_version}
#Compile&test (This will take a while) #Compile&test (This will take a while)
......
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