--- mitgcm.org/scripts/mk_git_tarfile 2018/01/18 19:22:17 1.4 +++ mitgcm.org/scripts/mk_git_tarfile 2018/01/24 21:19:30 1.5 @@ -1,6 +1,6 @@ #! /usr/bin/env bash -# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/mk_git_tarfile,v 1.4 2018/01/18 19:22:17 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/mitgcm.org/scripts/mk_git_tarfile,v 1.5 2018/01/24 21:19:30 jmc Exp $ # download the source code from github and make a tar file repo='altMITgcm' @@ -37,7 +37,7 @@ arName='MITgcm_ss_'`date +%Y%m%d`'.tar' echo -n 'Creating the archive file ... ' -( cd $code ; git archive -o ../$arName master ) +( cd $code ; git archive --prefix MITgcm/ -o ../$arName master ) gzip -9 $arName #- should check if successful, it not -> exit 3 echo 'Done!'