Added curl as wget replacement on Mac OSX and other machines

git-svn-id: http://qeforge.qe-forge.org/svn/q-e/trunk/espresso@7520 c92efa57-630b-4861-b058-cf58834340f0
This commit is contained in:
giannozz 2011-02-25 17:43:51 +00:00
parent 36aa06b24a
commit 2cba1f4a76
2 changed files with 31 additions and 12 deletions

View File

@ -1,6 +1,18 @@
#!/bin/sh
# Automated checks for cp.x - CC 2009
#
# Missing pseudotentials are automatically downloaded by wget:
WGET="wget -O"
# if wget does not exist on your machine, try curl (uncomment next line):
#WGET="curl -o"
# for openmp or mpi parallel execution - like in examples/
#PARA_PREFIX="env OMP_NUM_THREADS=2"
#PARA_PREFIX="mpirun -np 2"
#PARA_POSTFIX="-npool 1"
#
# You shouldn't need to modify anything below this line.
#
# Some specific quantities are checked against a reference output
# Checks are implemented for the following calculations:
# ' fill in here '
@ -23,12 +35,8 @@
# taken from examples - not sure it is really needed
if test "`echo -e`" = "-e" ; then ECHO=echo ; else ECHO="echo -e" ; fi
#
ESPRESSO_ROOT=`cd .. ; pwd`
PARA_PREFIX=
#PARA_PREFIX="mpirun -np 4"
PARA_POSTFIX=
#PARA_POSTFIX="-nb 2"
ESPRESSO_TMPDIR=$ESPRESSO_ROOT/tmp/
ESPRESSO_PSEUDO=$ESPRESSO_ROOT/pseudo/
@ -62,8 +70,9 @@ get_pp () {
do
if ! test -f $ESPRESSO_PSEUDO/$ppfile ; then
$ECHO "Downloading $ppfile to $ESPRESSO_PSEUDO...\c"
wget http://www.quantum-espresso.org/pseudo/1.3/UPF/$ppfile \
-O $ESPRESSO_PSEUDO/$ppfile 2> /dev/null
$WGET $ESPRESSO_PSEUDO/$ppfile \
http://www.quantum-espresso.org/pseudo/1.3/UPF/$ppfile \
2> /dev/null
if test $? != 0; then
$ECHO "failed!"
$ECHO "test $1 will not be executed"

View File

@ -1,6 +1,18 @@
#!/bin/sh
# Automated checks for pw.x - PG 2007-2011
#
# Missing pseudotentials are automatically downloaded by wget:
WGET="wget -O"
# if wget does not exist on your machine, try curl (uncomment next line):
#WGET="curl -o"
# for openmp or mpi parallel execution - like in examples/
#PARA_PREFIX="env OMP_NUM_THREADS=2"
#PARA_PREFIX="mpirun -np 2"
#PARA_POSTFIX="-npool 1"
#
# You shouldn't need to modify anything below this line.
#
# Some specific quantities are checked against a reference output
# Checks are implemented for the following calculations:
# 'scf', 'relax', 'md', 'vc-relax', 'nscf'
@ -32,9 +44,6 @@
if test "`echo -e`" = "-e" ; then ECHO=echo ; else ECHO="echo -e" ; fi
ESPRESSO_ROOT=`cd .. ; pwd`
#PARA_PREFIX="env OMP_NUM_THREADS=2"
#PARA_PREFIX="mpirun -np 2"
#PARA_POSTFIX="-npool 1"
ESPRESSO_TMPDIR=$ESPRESSO_ROOT/tmp/
ESPRESSO_PSEUDO=$ESPRESSO_ROOT/pseudo/
@ -68,8 +77,9 @@ get_pp () {
do
if ! test -f $ESPRESSO_PSEUDO/$ppfile ; then
$ECHO "Downloading $ppfile to $ESPRESSO_PSEUDO...\c"
wget http://www.quantum-espresso.org/pseudo/1.3/UPF/$ppfile \
-O $ESPRESSO_PSEUDO/$ppfile 2> /dev/null
$WGET $ESPRESSO_PSEUDO/$ppfile \
http://www.quantum-espresso.org/pseudo/1.3/UPF/$ppfile \
2> /dev/null
if test $? != 0; then
$ECHO "failed!"
$ECHO "test $1 will not be executed"