mirror of
https://github.com/nwchemgit/nwchem.git
synced 2026-07-21 14:35:21 -04:00
svn replaced by git
This commit is contained in:
parent
6650f16bfa
commit
a7055a28bc
1 changed files with 5 additions and 6 deletions
|
|
@ -29,14 +29,13 @@ else
|
|||
path="`which \"$0\"`"
|
||||
path="`dirname \"$path\"`"
|
||||
fi
|
||||
my_svnversion=`which svn`
|
||||
my_gitversion=`which git`
|
||||
cd "$path"
|
||||
if [ -f "${my_svnversion}" ] ; then
|
||||
# svnversion exists, but is the code under svn?
|
||||
WCBRANCH=`svn info . 2> /dev/null | wc -l`
|
||||
if [ -f "${my_gitversion}" ] ; then
|
||||
# gitversion exists, but is the code under git?
|
||||
WCBRANCH=`${my_gitversion} describe --always --abbrev=40 | wc -l`
|
||||
if [ ${WCBRANCH} -ne 0 ]; then
|
||||
revision=`${my_svnversion} info -r 'HEAD'| grep Last\ Changed\ Rev:`
|
||||
revision=`echo ${revision} | sed 's/Last\ Changed\ Rev: //'`
|
||||
revision=`${my_gitversion} describe --always --abbrev=40`
|
||||
echo " subroutine util_nwchem_version(nwrev)" > util_nwchem_version.F
|
||||
echo " implicit none" >> util_nwchem_version.F
|
||||
echo " character*(*) nwrev" >> util_nwchem_version.F
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue