Last change
on this file since 662 was
28,
checked in by arnault, 19 years ago
|
Set exe bits to *.sh
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
558 bytes
|
Rev | Line | |
---|
[2] | 1 | |
---|
| 2 | branches=$* |
---|
| 3 | |
---|
| 4 | if test "${branches}" = "" ; then |
---|
| 5 | echo "No branch are specified to export" |
---|
| 6 | else |
---|
| 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} |
---|
| 22 | fi |
---|
| 23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.