2014-10-23 22:40:21 +02:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Installs curl for ocaml
|
2015-01-12 19:14:00 +01:00
|
|
|
# Mon Jan 12 18:52:48 CET 2015
|
2014-10-23 22:40:21 +02:00
|
|
|
|
2015-01-12 18:39:28 +01:00
|
|
|
CURL="curl-7.30.0.ermine"
|
|
|
|
CURL_URL="http://qmcchem.ups-tlse.fr/files/scemama/${CURL}.tar.bz2"
|
2014-10-23 22:40:21 +02:00
|
|
|
|
2015-01-19 16:11:36 +01:00
|
|
|
if [[ -z ${QPACKAGE_ROOT} ]]
|
|
|
|
then
|
2015-04-27 17:10:25 +02:00
|
|
|
echo "The QPACKAGE_ROOT environment variable is not set."
|
|
|
|
echo "Please reload the quantum_package.rc file."
|
2015-03-25 23:03:51 +01:00
|
|
|
exit -1
|
2015-01-19 16:11:36 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
cd ${QPACKAGE_ROOT}
|
|
|
|
|
2015-01-12 18:39:28 +01:00
|
|
|
curl -kL "https://github.com/LCPQ/quantum_package" &> /dev/null
|
|
|
|
if [[ $? -eq 0 ]]
|
|
|
|
then
|
|
|
|
exit 0
|
2014-10-23 22:40:21 +02:00
|
|
|
fi
|
|
|
|
|
2015-01-12 18:39:28 +01:00
|
|
|
rm -f -- ${QPACKAGE_ROOT}/bin/curl
|
2015-05-13 15:42:53 +02:00
|
|
|
${QPACKAGE_ROOT}/scripts/install/fetch_from_web.py ${CURL_URL} CURL.tar.bz2
|
2015-01-12 18:39:28 +01:00
|
|
|
tar -jxf CURL.tar.bz2 && rm CURL.tar.bz2 ||exit 1
|
|
|
|
cd ${CURL} || exit 1
|
|
|
|
mv curl.ermine ${QPACKAGE_ROOT}/bin/curl
|
|
|
|
cd ${QPACKAGE_ROOT}
|
|
|
|
rm -rf -- ${CURL}
|
|
|
|
|