Magellan Linux

Diff of /tags/mage-0_4_112/make-tarball.sh

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

revision 551 by niro, Sun Sep 2 00:17:06 2007 UTC revision 647 by niro, Tue Jan 1 16:42:14 2008 UTC
# Line 4  temp=$(mktemp -d) Line 4  temp=$(mktemp -d)
4  cvs_module="magellan-src/mage"  cvs_module="magellan-src/mage"
5  rev_keyword="mage"  rev_keyword="mage"
6  tarball_prefix="mage"  tarball_prefix="mage"
7  destination="root@magellan-linux.de:/var/www/magellan/magellan-dev/sources/mage/"  destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/mage/"
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')
11    
12  echo -n "building tarball for ${latest_version}... "  echo -n "building tarball for ${latest_version}... "
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:@cvs.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  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

Legend:
Removed from v.551  
changed lines
  Added in v.647