~ubuntu-branches/ubuntu/saucy/nwchem/saucy

« back to all changes in this revision

Viewing changes to src/tools/get-tools

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2012-02-09 20:02:41 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20120209200241-jgk03qfsphal4ug2
Tags: 6.1-1
* New upstream release.

[ Michael Banck ]
* debian/patches/02_makefile_flags.patch: Updated.
* debian/patches/02_makefile_flags.patch: Use internal blas and lapack code.
* debian/patches/02_makefile_flags.patch: Define GCC4 for LINUX and LINUX64
  (Closes: #632611 and LP: #791308).
* debian/control (Build-Depends): Added openssh-client.
* debian/rules (USE_SCALAPACK, SCALAPACK): Removed variables (Closes:
  #654658).
* debian/rules (LIBDIR, USE_MPIF4, ARMCI_NETWORK): New variables.
* debian/TODO: New file.
* debian/control (Build-Depends): Removed libblas-dev, liblapack-dev and
  libscalapack-mpi-dev.
* debian/patches/04_show_testsuite_diff_output.patch: New patch, shows the
  diff output for failed tests.
* debian/patches/series: Adjusted.
* debian/testsuite: Optionally run all tests if "all" is passed as option.
* debian/rules: Run debian/testsuite with "all" if DEB_BUILD_OPTIONS
  contains "checkall".

[ Daniel Leidert ]
* debian/control: Used wrap-and-sort. Added Vcs-Svn and Vcs-Browser fields.
  (Priority): Moved to extra according to policy section 2.5.
  (Standards-Version): Bumped to 3.9.2.
  (Description): Fixed a typo.
* debian/watch: Added.
* debian/patches/03_hurd-i386_define_path_max.patch: Added.
  - Define MAX_PATH if not defines to fix FTBFS on hurd.
* debian/patches/series: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/csh
2
 
#
3
 
# $Id: get-tools,v 1.15 2008-08-15 23:24:44 d3p307 Exp $
4
 
#
5
 
 
6
 
unalias mv
7
 
unalias rm
8
 
 
9
 
set TOOLDIR = `pwd`
10
 
if (-e $TOOLDIR/armci) then
11
 
echo "You have an old copy of the ga tools, deleting it now"
12
 
   rm -rf $TOOLDIR/armci
13
 
   rm -rf $TOOLDIR/armci-portals
14
 
   rm -rf $TOOLDIR/cca
15
 
   rm -rf $TOOLDIR/config
16
 
   rm -rf $TOOLDIR/ga++
17
 
   rm -rf $TOOLDIR/global
18
 
   rm -rf $TOOLDIR/LinAlg
19
 
   rm -rf $TOOLDIR/ma
20
 
   rm -rf $TOOLDIR/pario
21
 
   rm -rf $TOOLDIR/tcgmsg
22
 
   rm -rf $TOOLDIR/tcgmsg-mpi
23
 
   rm -rf $TOOLDIR/doc
24
 
   rm -rf $TOOLDIR/examples
25
 
   rm -rf $TOOLDIR/build-aux
26
 
   rm -rf $TOOLDIR/f2c
27
 
endif
28
 
 
29
 
svn checkout https://svn.pnl.gov/svn/hpctools/branches/ga-4-3 ./ga
30
 
 
31
 
cd ga
32
 
rm -f README
33
 
rm -f license.txt
34
 
rm -f INSTALL
35
 
rm -f NOTES
36
 
rm -f GNUmakefile
37
 
mv -f * ..
38
 
cd ..
39
 
rm -rf ga
40
 
 
 
1
#!/bin/sh
 
2
#
 
3
# $Id: get-tools 21549 2011-11-21 23:24:55Z d3y133 $
 
4
#
 
5
 
 
6
unalias -a
 
7
 
 
8
export NWCHEM_TOP=${NWCHEM_TOP:-"`pwd`/../"}
 
9
if test "x$NWCHEM_TOP" = x
 
10
then
 
11
    echo You must set NWCHEM_TOP to use this script.
 
12
    exit 1
 
13
fi
 
14
 
 
15
TOOLDIR=`pwd`
 
16
CONFIG=$NWCHEM_TOP/src/config/makefile.h
 
17
   GA_DEV_SVN=https://svn.pnl.gov/svn/hpctools/trunk/ga
 
18
       GA_DEV=ga-dev
 
19
GA_STABLE_SVN=https://svn.pnl.gov/svn/hpctools/branches/ga-5-1
 
20
    GA_STABLE=ga-5-1
 
21
   GA_OLD_SVN=https://svn.pnl.gov/svn/hpctools/branches/ga-4-3
 
22
       GA_OLD=ga-4-3
 
23
 
 
24
# If OLD_GA is set at all in the user's environment then it means 'yes'
 
25
if test "x$OLD_GA" != x
 
26
then
 
27
    OLD_GA=yes
 
28
fi
 
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
 
31
then
 
32
    OLD_GA=yes
 
33
fi
 
34
echo "OLD_GA=$OLD_GA"
 
35
 
 
36
# If DEV_GA is set at all in the user's environment then it means 'yes'
 
37
if test "x$DEV_GA" != x
 
38
then
 
39
    GA_SVN=$GA_DEV_SVN
 
40
    GA_DIRNAME=$GA_DEV
 
41
else
 
42
    GA_SVN=$GA_STABLE_SVN
 
43
    GA_DIRNAME=$GA_STABLE
 
44
fi
 
45
 
 
46
# Update the "OLD_GA" source.
 
47
if test -e $TOOLDIR/armci
 
48
then
 
49
    echo "You have an old copy of the ga tools using GNUmakefiles"
 
50
    echo "Deleting it now"
 
51
    rm -rf $TOOLDIR/armci
 
52
    rm -rf $TOOLDIR/armci-portals
 
53
    rm -rf $TOOLDIR/build-aux
 
54
    rm -rf $TOOLDIR/cca
 
55
    rm -rf $TOOLDIR/config
 
56
    rm -rf $TOOLDIR/doc
 
57
    rm -rf $TOOLDIR/examples
 
58
    rm -rf $TOOLDIR/f2c
 
59
    rm -rf $TOOLDIR/ga++
 
60
    rm -rf $TOOLDIR/gaf2c
 
61
    rm -rf $TOOLDIR/global
 
62
    rm -rf $TOOLDIR/lib
 
63
    rm -rf $TOOLDIR/LinAlg
 
64
    rm -rf $TOOLDIR/ma
 
65
    rm -rf $TOOLDIR/pario
 
66
    rm -rf $TOOLDIR/tcgmsg
 
67
    rm -rf $TOOLDIR/tcgmsg-mpi
 
68
fi
 
69
if svn checkout $GA_OLD_SVN $GA_OLD
 
70
then
 
71
    cd $GA_OLD
 
72
    rm -f README
 
73
    rm -f license.txt
 
74
    rm -f INSTALL
 
75
    rm -f NOTES
 
76
    rm -f GNUmakefile
 
77
    cp -f -R * ..
 
78
    cd $TOOLDIR
 
79
fi
 
80
 
 
81
# Update the autotools build of GA.
 
82
#if test -e $TOOLDIR/build
 
83
#then
 
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
 
88
#fi
 
89
if test -d $GA_DIRNAME
 
90
then
 
91
    echo "Updating existing $GA_DIRNAME"
 
92
    cd $GA_DIRNAME
 
93
    if svn update
 
94
    then
 
95
        echo "Finished updating existing $GA_DIRNAME"
 
96
    else
 
97
        echo "Failed updating existing $GA_DIRNAME"
 
98
        echo "Attempting to remove $GA_DIRNAME"
 
99
        cd $TOOLDIR
 
100
        if rm -rf $GA_DIRNAME
 
101
        then
 
102
            echo "Checking out $GA_SVN"
 
103
            svn checkout $GA_SVN $GA_DIRNAME
 
104
        else
 
105
            echo "Failed to remove $GA_DIRNAME"
 
106
            echo "get-tools has failed"
 
107
        fi
 
108
    fi
 
109
    cd $TOOLDIR
 
110
else
 
111
    echo "Checking out $GA_SVN"
 
112
    svn checkout $GA_SVN $GA_DIRNAME
 
113
fi