104 |
|
|
105 |
if [ $checkOut -eq 1 ] ; then |
if [ $checkOut -eq 1 ] ; then |
106 |
if test -e $git_code/.git/config ; then |
if test -e $git_code/.git/config ; then |
107 |
|
( cd $git_code ; git checkout master ) | tee -a $LOG_FIL |
108 |
echo -n "Updating current clone ( $git_code ) ..." | tee -a $LOG_FIL |
echo -n "Updating current clone ( $git_code ) ..." | tee -a $LOG_FIL |
109 |
echo '' >> $LOG_FIL |
echo '' >> $LOG_FIL |
110 |
( cd $git_code ; git pull ) >> $LOG_FIL 2>&1 |
( cd $git_code ; git pull ) >> $LOG_FIL 2>&1 |
133 |
fi |
fi |
134 |
fi |
fi |
135 |
#---- making a new working copy: MITgcm_today |
#---- making a new working copy: MITgcm_today |
|
( cd $git_code ; git checkout master ) |
|
136 |
rsync -a $git_code/ $srcCode --exclude '.git' |
rsync -a $git_code/ $srcCode --exclude '.git' |
137 |
|
ls -ld $srcCode | tee -a $LOG_FIL |
138 |
if test -d $srcCode/verification ; then |
if test -d $srcCode/verification ; then |
139 |
for exp2add in $addExp ; do |
for exp2add in $addExp ; do |
140 |
echo " add dir: $exp2add (from Contrib:verification_other)" | tee -a $LOG_FIL |
echo " add dir: $exp2add (from Contrib:verification_other)" | tee -a $LOG_FIL |
148 |
if test -d $srcCode/verification ; then |
if test -d $srcCode/verification ; then |
149 |
echo $today > $updFile ; sleep 2 |
echo $today > $updFile ; sleep 2 |
150 |
ls -l $updFile | tee -a $LOG_FIL |
ls -l $updFile | tee -a $LOG_FIL |
151 |
|
echo '' | tee -a $LOG_FIL |
152 |
fi |
fi |
153 |
|
|
154 |
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
#---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |