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

Diff of /MITgcm_contrib/test_scripts/ref_machine/test_villon

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

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.22