~ubuntu-branches/ubuntu/trusty/nwchem/trusty-proposed

« back to all changes in this revision

Viewing changes to src/util/util_nwchem_version.bash

  • Committer: Package Import Robot
  • Author(s): Michael Banck, Daniel Leidert, Andreas Tille, Michael Banck
  • Date: 2013-07-04 12:14:55 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130704121455-5tvsx2qabor3nrui
Tags: 6.3-1
* New upstream release.
* Fixes anisotropic properties (Closes: #696361).
* New features include:
  + Multi-reference coupled cluster (MRCC) approaches
  + Hybrid DFT calculations with short-range HF 
  + New density-functionals including Minnesota (M08, M11) and HSE hybrid
    functionals
  + X-ray absorption spectroscopy (XAS) with TDDFT
  + Analytical gradients for the COSMO solvation model
  + Transition densities from TDDFT 
  + DFT+U and Electron-Transfer (ET) methods for plane wave calculations
  + Exploitation of space group symmetry in plane wave geometry optimizations
  + Local density of states (LDOS) collective variable added to Metadynamics
  + Various new XC functionals added for plane wave calculations, including
    hybrid and range-corrected ones
  + Electric field gradients with relativistic corrections 
  + Nudged Elastic Band optimization method
  + Updated basis sets and ECPs 

[ Daniel Leidert ]
* debian/watch: Fixed.

[ Andreas Tille ]
* debian/upstream: References

[ Michael Banck ]
* debian/upstream (Name): New field.
* debian/patches/02_makefile_flags.patch: Refreshed.
* debian/patches/06_statfs_kfreebsd.patch: Likewise.
* debian/patches/07_ga_target_force_linux.patch: Likewise.
* debian/patches/05_avoid_inline_assembler.patch: Removed, no longer needed.
* debian/patches/09_backported_6.1.1_fixes.patch: Likewise.
* debian/control (Build-Depends): Added gfortran-4.7 and gcc-4.7.
* debian/patches/10_force_gcc-4.7.patch: New patch, explicitly sets
  gfortran-4.7 and gcc-4.7, fixes test suite hang with gcc-4.8 (Closes:
  #701328, #713262).
* debian/testsuite: Added tests for COSMO analytical gradients and MRCC.
* debian/rules (MRCC_METHODS): New variable, required to enable MRCC methods.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#
 
3
# This script works out the revision number of the NWChem source
 
4
# code. It writes the resulting data in suboutine that can be used
 
5
# to query this information.
 
6
#
 
7
# We need 2 things for this operation to complete successfully:
 
8
# 1. svn needs to be available on this machine
 
9
# 2. the .svn directories need to be present in this source code
 
10
# If both these requirements are satisfied we will always overwrite
 
11
# the revision information with a current version.
 
12
# If either of these requirements is not satisfied we still need to
 
13
# make sure there is a valid version subroutine to ensure the code
 
14
# will compile. If such a routine already exists we do nothing as 
 
15
# we lack the tools to do better than whatever is in that routine
 
16
# already. If such a routine does not exist we create one but
 
17
# setting the version number to blank (this is the best we can do).
 
18
#
 
19
# First find out where this script actually lives so we can create
 
20
# the appropriate Fortran file in the right location.
 
21
#
 
22
if [ -f "$0" ] ; then
 
23
   # The first item on the command line is an actual file so the 
 
24
   # script must have been specified including the path.
 
25
   path="`dirname \"$0\"`"
 
26
else
 
27
   # The first item on the command line is not a file so script
 
28
   # it must have been found in PATH.
 
29
   path="`which \"$0\"`"
 
30
   path="`dirname \"$path\"`"
 
31
fi
 
32
my_svnversion=`which svn`
 
33
cd "$path"
 
34
if [ -f "${my_svnversion}" ] ; then
 
35
  # svnversion exists, but does .svn?
 
36
  if [ -d ../../.svn ] ; then
 
37
    # .svn exists too
 
38
    revision=`${my_svnversion} info ../.. | grep Revision:`
 
39
    revision=`echo ${revision} | sed 's/Revision: //'`
 
40
    echo "      subroutine util_nwchem_version(nwrev)" > util_nwchem_version.F
 
41
    echo "      implicit none" >> util_nwchem_version.F
 
42
    echo "      character*(*) nwrev" >> util_nwchem_version.F
 
43
    echo "      nwrev=\"${revision}\"" >> util_nwchem_version.F
 
44
    echo "      end" >> util_nwchem_version.F
 
45
  else
 
46
    if [ ! -f util_nwchem_version.F ] ; then
 
47
      echo "      subroutine util_nwchem_version(nwrev)" > util_nwchem_version.F
 
48
      echo "      implicit none" >> util_nwchem_version.F
 
49
      echo "      character*(*) nwrev" >> util_nwchem_version.F
 
50
      echo "      nwrev=\"N/A\"" >> util_nwchem_version.F
 
51
      echo "      end" >> util_nwchem_version.F
 
52
    fi
 
53
  fi
 
54
else
 
55
  if [ ! -f util_nwchem_version.F ] ; then
 
56
    echo "      subroutine util_nwchem_version(nwrev)" > util_nwchem_version.F
 
57
    echo "      implicit none" >> util_nwchem_version.F
 
58
    echo "      character*(*) nwrev" >> util_nwchem_version.F
 
59
    echo "      nwrev=\"N/A\"" >> util_nwchem_version.F
 
60
    echo "      end" >> util_nwchem_version.F
 
61
  fi
 
62
fi