/[MITgcm]/mitgcm.org/scripts/mk_git_tarfile
ViewVC logotype

Diff of /mitgcm.org/scripts/mk_git_tarfile

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

revision 1.8 by jmc, Tue Feb 6 15:43:47 2018 UTC revision 1.10 by jmc, Sat May 5 16:27:10 2018 UTC
# Line 44  gzip -9 $arName Line 44  gzip -9 $arName
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"
# Line 74  echo ' Done !' Line 74  echo ' Done !'
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

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.22