source: CMT/v1r19/mgr/cmt_tar_export.sh @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 581 bytes
Line 
1
2branches=$*
3
4if test "${branches}" = "" ; then
5  echo "No branch are specified to export"
6else
7  cd ..
8  root=`pwd`
9  version=`basename ${root}`
10  package=`dirname ${root}`
11  package=`basename ${package}`
12
13  if test ${package} = "CMT" ; then
14    prefix=`cmt version`/
15  fi
16
17  cd ../../
18  branches=`echo " "${branches} | sed -e "s%[ ]% ${package}/${version}/%g"`
19  tar cf ${package}/${package}${version}.tar ${branches}
20  gzip ${package}/${package}${version}.tar
21  ${CMTROOT}/mgr/cmt_export.sh ${package} ${package}/${package}${version}.tar.gz ${prefix}
22fi
23
Note: See TracBrowser for help on using the repository browser.