NWChem/QA/domknwchemrc
Huub Van Dam 97f303e6f8 HvD: In the CVS era the $Id: $ tags in the source code files would
automatically be expanded to include useful information about the
checkin (including the file's revision number). With the switch over
to SVN this was lost because SVN only does this expansion if you 
explicitly ask for it (for every single file). 

I have added a script to the contrib directory that sets the appropriate
property to get SVN to do this expansion. This script will make it easy
to do this every time new source files are added. It is called
svn_expand_Id, the script contains some comments that explain the issue
and how it addresses this.  

This checkin sets this property for a subset of the relevant files
(trying to commit all files at once failed with svn crashing). 
In future the script will only affect those files for which the property
was not set before.
2010-10-29 18:04:21 +00:00

36 lines
1.6 KiB
Tcsh
Executable file

#!/bin/csh -f
#
# $Id$
#
#--- backup the nwchemrc file
#
if (-f ~/.nwchemrc) then
if (-f ~/nwchemrc-backup) then
echo "ERROR: Cannot backup ~/.nwchemrc: ~/nwchemrc-backup already exists"
exit 100
else
mv ~/.nwchemrc ~/nwchemrc-backup; chmod 400 ~/nwchemrc-backup
endif
endif
#
#--- create an nwchemrc file appropriate for the tests
#
set here=`pwd`
echo "# Automatically generated by $0 on system `hostname` on `date`" > ~/.nwchemrc
echo "nwchem_nwpw_library ${here}/../src/nwpw/libraryps/" >> ~/.nwchemrc
echo "nwchem_basis_library ${here}/../src/basis/libraries/" >> ~/.nwchemrc
echo "scratch_dir ${here}/scratchdir" >> ~/.nwchemrc
echo "permanent_dir ${here}/scratchdir" >> ~/.nwchemrc
echo "memory_total 65536000 # 500 MB" >> ~/.nwchemrc
echo "# By default use AMBER force field" >> ~/.nwchemrc
echo "ffield amber" >> ~/.nwchemrc
echo "# For both AMBER and CHARMM :" >> ~/.nwchemrc
echo "# - standard parameters in directory ending in _s" >> ~/.nwchemrc
echo "# - extended parameters in directory ending in _x" >> ~/.nwchemrc
echo "amber_1 ${here}/../src/data/amber_s/" >> ~/.nwchemrc
echo "amber_2 ${here}/../src/data/amber_x/" >> ~/.nwchemrc
echo "spce ${here}/../src/data/solvents/spce.rst" >> ~/.nwchemrc
echo "charmm_s ${here}/../src/data/charmm_s/" >> ~/.nwchemrc
echo "charmm_x ${here}/../src/data/charmm_x/" >> ~/.nwchemrc
exit 0