| 44 |
echo 'Done!' |
echo 'Done!' |
| 45 |
|
|
| 46 |
#chmod 664 ${arName}.gz |
#chmod 664 ${arName}.gz |
| 47 |
ls -l ${arName}* |
ls -l ${arName}* | tee -a $HOME/testing/logs/tar_file_list |
| 48 |
|
|
| 49 |
#exit |
#exit |
| 50 |
backupDir="other_checkpoints" |
backupDir="other_checkpoints" |
| 74 |
ls -l ${savRepo}* |
ls -l ${savRepo}* |
| 75 |
|
|
| 76 |
#-- test for new checkpoint |
#-- test for new checkpoint |
| 77 |
version_file="$git_code/doc/tag-index" |
version_file="$git_code/doc/tag-index" |
| 78 |
|
#version_file="$git_code/.git/config" |
| 79 |
if test -f $version_file ; then |
if test -f $version_file ; then |
| 80 |
thischkpt=`awk '/^checkpoint/{print $1; exit}' $version_file` |
thischkpt=`awk '/^checkpoint/{print $1; exit}' $version_file` |
| 81 |
|
#- better way to get latest tag ( but only works with git version 2 ) |
| 82 |
|
#thischkpt=`(cd $git_code ; git tag -l --sort=-authordate | head -n 1 )` |
| 83 |
short=`echo $thischkpt | sed 's/checkpoint/c/'` |
short=`echo $thischkpt | sed 's/checkpoint/c/'` |
| 84 |
chkptar="MITgcm_${short}.tar" |
chkptar="MITgcm_${short}.tar" |
| 85 |
if test -f ../$chkptar.gz ; then |
if test -f ../$chkptar.gz ; then |