20 |
# MPI test (for now, only with gfortran) |
# MPI test (for now, only with gfortran) |
21 |
source $HOME/bin/openmpi.sh |
source $HOME/bin/openmpi.sh |
22 |
|
|
23 |
#- method to acces CVS: |
#- method to access CVS: |
24 |
# cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack' |
# cmdCVS='cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack' |
25 |
# cmdCVS='cvs -d /u/gcmpack' |
# cmdCVS='cvs -d /u/gcmpack' |
26 |
export CVS_RSH=ssh |
export CVS_RSH=ssh |
27 |
cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack' |
cmdCVS='cvs -q -d :ext:jmc@mitgcm.org:/u/gcmpack' |
28 |
|
|
29 |
#- and which GitHub repository to use: |
#- which GitHub repository to use and how to access it: |
30 |
git_repo='MITgcm'; git_code='MITgcm' |
git_repo='MITgcm'; git_code='MITgcm' |
31 |
#git_repo='altMITgcm'; #git_code='MITgcm66h' |
#git_repo='altMITgcm'; #git_code='MITgcm66h' |
32 |
|
#-- |
33 |
|
git_repo="https://github.com/$git_repo" |
34 |
|
#git_repo="git://github.com/$git_repo" |
35 |
|
#git_repo="git@github.com:$git_repo" |
36 |
|
|
37 |
|
|
38 |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
# checkOut=3 : clone from GitHub and make a new copy (if sepDir) |
39 |
# =2 : update (git pull) repo and make a new copy code (switch to 2 if no repo) |
# =2 : update (git pull) repo and make a new copy code (switch to 2 if no repo) |
108 |
if [ $checkOut -eq 3 ] ; then |
if [ $checkOut -eq 3 ] ; then |
109 |
test -e $git_code && rm -rf $git_code |
test -e $git_code && rm -rf $git_code |
110 |
echo -n "Make a clone of $git_code from repo: $git_repo ..." |
echo -n "Make a clone of $git_code from repo: $git_repo ..." |
111 |
git clone https://github.com/$git_repo/${git_code}.git 2> $tmpFil |
git clone $git_repo/${git_code}.git 2> $tmpFil |
112 |
retVal=$? |
retVal=$? |
113 |
if test $retVal = 0 ; then |
if test $retVal = 0 ; then |
114 |
echo ' --> done!' |
echo ' --> done!' |