/[MITgcm]/MITgcm_contrib/test_scripts/ref_machine/test_baudelaire
ViewVC logotype

Diff of /MITgcm_contrib/test_scripts/ref_machine/test_baudelaire

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by jmc, Fri Feb 2 14:33:13 2018 UTC revision 1.4 by jmc, Sat Feb 24 17:33:55 2018 UTC
# Line 93  if [ $checkOut -ge 2 ] ; then Line 93  if [ $checkOut -ge 2 ] ; then
93    cd $tdir    cd $tdir
94    
95    #---- Making a new clone or updating existing one:    #---- Making a new clone or updating existing one:
96    if test -e MITgcm/.git/config ; then    if [ $checkOut -eq 2 ] ; then
97      echo MITgcm/.git/config 'exist'      if test -e MITgcm/.git/config ; then
98    else         echo MITgcm/.git/config 'exist'
99      echo -n MITgcm/.git/config 'missing ; '      else
100      checkOut=3         echo -n MITgcm/.git/config 'missing ; '
101      echo "will get new clone ( checkOut=$checkOut )"         checkOut=3
102           echo "will get new clone ( checkOut=$checkOut )"
103        fi
104    fi    fi
105    if [ $checkOut -eq 3 ] ; then    if [ $checkOut -eq 3 ] ; then
106        test -e $git_code && rm -rf $git_code
107      echo -n "Make a clone of $git_code from repo: $git_repo ..."      echo -n "Make a clone of $git_code from repo: $git_repo ..."
108      git clone https://github.com/$git_repo/${git_code}.git 2> $tmpFil      git clone https://github.com/$git_repo/${git_code}.git 2> $tmpFil
109      retVal=$?      retVal=$?
# Line 116  if [ $checkOut -ge 2 ] ; then Line 119  if [ $checkOut -ge 2 ] ; then
119    else    else
120      echo "Updating current clone ( $git_code ) ..."      echo "Updating current clone ( $git_code ) ..."
121      ( cd $git_code ; git pull )      ( cd $git_code ; git pull )
122      echo ' --> done!'      retVal=$?
123        if test $retVal = 0 ; then
124           echo ' --> done!'
125        else
126           echo "git pull on '"`hostname`"' fail (return val=$retVal) => exit"
127           exit 3
128        fi
129    fi    fi
130    
131    #---- making a new working copy: MITgcm_today    #---- making a new working copy: MITgcm_today

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22