/[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.9 by jmc, Sun Feb 25 16:43:19 2018 UTC revision 1.10 by jmc, Sat May 5 16:27:10 2018 UTC
# 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.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.22