Magellan Linux

Diff of /tags/init-0_5_6/make-tarball.sh

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

revision 527 by niro, Sat Sep 1 20:05:59 2007 UTC revision 528 by niro, Sat Sep 1 20:08:15 2007 UTC
# Line 4  temp=$(mktemp -d) Line 4  temp=$(mktemp -d)
4  cvs_module="magellan-src/magellan-initscripts"  cvs_module="magellan-src/magellan-initscripts"
5  rev_keyword="init"  rev_keyword="init"
6  tarball_prefix="initscripts"  tarball_prefix="initscripts"
7  destination="root@magellan-linux.de:/magellan/magellan-dev/sources/initscripts/"  destination="root@magellan-linux.de:/var/www/magellan/magellan-dev/sources/initscripts/"
8    
9  latest_revision=$(cvs status -v make-tarball.sh | grep -A1 "Existing Tags:" | sed -e 's/Existing Tags://' -e 's/ //g' -e '/^$/d' | /bin/awk '{ print $1; exit; }')  latest_revision=$(cvs status -v make-tarball.sh | grep -A1 "Existing Tags:" | sed -e 's/Existing Tags://' -e 's/ //g' -e '/^$/d' | /bin/awk '{ print $1; exit; }')
10  latest_version=$(echo ${latest_revision} | sed -e "s:${rev_keyword}-::" -e 's:_:.:g')  latest_version=$(echo ${latest_revision} | sed -e "s:${rev_keyword}-::" -e 's:_:.:g')
# Line 13  echo -n "building tarball for ${latest_v Line 13  echo -n "building tarball for ${latest_v
13  cd ${temp}  cd ${temp}
14  cvs -z3 -d :pserver:anonymous:@magellan-linux.de:/magellan-cvs checkout -P -r ${latest_revision} ${cvs_module}  cvs -z3 -d :pserver:anonymous:@magellan-linux.de:/magellan-cvs checkout -P -r ${latest_revision} ${cvs_module}
15  mv ${temp}/${cvs_module} ${tarball_prefix}-${latest_version}  mv ${temp}/${cvs_module} ${tarball_prefix}-${latest_version}
16    rm ./${tarball_prefix}-${latest_version}/make-tarball.sh
17  find ./${tarball_prefix}-${latest_version} -name CVS | xargs rm -r  find ./${tarball_prefix}-${latest_version} -name CVS | xargs rm -r
18  tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version}  tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version}
19  scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination}  scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination}

Legend:
Removed from v.527  
changed lines
  Added in v.528