3
# $Id: get-tools,v 1.15 2008-08-15 23:24:44 d3p307 Exp $
10
if (-e $TOOLDIR/armci) then
11
echo "You have an old copy of the ga tools, deleting it now"
13
rm -rf $TOOLDIR/armci-portals
15
rm -rf $TOOLDIR/config
17
rm -rf $TOOLDIR/global
18
rm -rf $TOOLDIR/LinAlg
21
rm -rf $TOOLDIR/tcgmsg
22
rm -rf $TOOLDIR/tcgmsg-mpi
24
rm -rf $TOOLDIR/examples
25
rm -rf $TOOLDIR/build-aux
29
svn checkout https://svn.pnl.gov/svn/hpctools/branches/ga-4-3 ./ga
3
# $Id: get-tools 21549 2011-11-21 23:24:55Z d3y133 $
8
export NWCHEM_TOP=${NWCHEM_TOP:-"`pwd`/../"}
9
if test "x$NWCHEM_TOP" = x
11
echo You must set NWCHEM_TOP to use this script.
16
CONFIG=$NWCHEM_TOP/src/config/makefile.h
17
GA_DEV_SVN=https://svn.pnl.gov/svn/hpctools/trunk/ga
19
GA_STABLE_SVN=https://svn.pnl.gov/svn/hpctools/branches/ga-5-1
21
GA_OLD_SVN=https://svn.pnl.gov/svn/hpctools/branches/ga-4-3
24
# If OLD_GA is set at all in the user's environment then it means 'yes'
25
if test "x$OLD_GA" != x
29
# Or, if OLD_GA is uncommented within $NWCHEM_TOP/src/config/makefile.h
30
if grep "^\s*OLD_GA\s*=" $CONFIG >/dev/null 2>&1
36
# If DEV_GA is set at all in the user's environment then it means 'yes'
37
if test "x$DEV_GA" != x
46
# Update the "OLD_GA" source.
47
if test -e $TOOLDIR/armci
49
echo "You have an old copy of the ga tools using GNUmakefiles"
50
echo "Deleting it now"
52
rm -rf $TOOLDIR/armci-portals
53
rm -rf $TOOLDIR/build-aux
55
rm -rf $TOOLDIR/config
57
rm -rf $TOOLDIR/examples
61
rm -rf $TOOLDIR/global
63
rm -rf $TOOLDIR/LinAlg
66
rm -rf $TOOLDIR/tcgmsg
67
rm -rf $TOOLDIR/tcgmsg-mpi
69
if svn checkout $GA_OLD_SVN $GA_OLD
81
# Update the autotools build of GA.
82
#if test -e $TOOLDIR/build
84
# echo "You have an old copy of the ga tools using configure"
85
# echo "Deleting it now"
86
# rm -rf $TOOLDIR/build
87
# rm -rf $TOOLDIR/install
89
if test -d $GA_DIRNAME
91
echo "Updating existing $GA_DIRNAME"
95
echo "Finished updating existing $GA_DIRNAME"
97
echo "Failed updating existing $GA_DIRNAME"
98
echo "Attempting to remove $GA_DIRNAME"
100
if rm -rf $GA_DIRNAME
102
echo "Checking out $GA_SVN"
103
svn checkout $GA_SVN $GA_DIRNAME
105
echo "Failed to remove $GA_DIRNAME"
106
echo "get-tools has failed"
111
echo "Checking out $GA_SVN"
112
svn checkout $GA_SVN $GA_DIRNAME