mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-28 22:25:48 -04:00
check libxc version supplied with LIBXC_VERSION
This commit is contained in:
parent
3967ab238d
commit
b723e9d2f6
1 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,14 @@ if [ $# -eq 0 ]; then
|
|||
else
|
||||
VERSION=$1
|
||||
fi
|
||||
VERSION_MAJOR=$(echo $VERSION | cut -d . -f 1)
|
||||
if [[ "$VERSION_MAJOR" -lt 4 ]]; then
|
||||
echo
|
||||
echo "LIBXC unsupported version " "$VERSION"
|
||||
echo "please use 4.0.0 and later versions"
|
||||
echo
|
||||
exit 1
|
||||
fi
|
||||
TGZ=libxc-${VERSION}.tar.gz
|
||||
if [ `check_tgz $TGZ` == 1 ]; then
|
||||
echo "using existing $TGZ"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue