Magellan Linux

Diff of /trunk/mage/make-tarball.sh

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

revision 795 by niro, Sat Jan 31 16:22:41 2009 UTC revision 797 by niro, Sat Jan 31 16:27:49 2009 UTC
# Line 7  rev_keyword="${svn_module}" Line 7  rev_keyword="${svn_module}"
7  tarball_prefix="${svn_module}"  tarball_prefix="${svn_module}"
8  destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${svn_module}/"  destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${svn_module}/"
9    
10  latest_revision=$(svn ls --verbose ${svn_base_uri}/tags | grep ${rev_keyword} | sort -n | sed -e 's:/::' |  awk '{ print $6; exit; }')  latest_revision=$(svn ls --verbose ${svn_base_uri}/tags | grep ${rev_keyword} | sort -nr | sed -e 's:/::' |  awk '{ print $6; exit; }')
11  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')
12    
13  echo -n "building tarball for ${latest_version}... "  echo -n "building tarball for ${latest_version}... "
# Line 26  find ./${tarball_prefix}-${latest_versio Line 26  find ./${tarball_prefix}-${latest_versio
26  tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version}  tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version}
27  scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination}  scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination}
28    
29  # if [[ -d ${temp} ]]  if [[ -d ${temp} ]]
30  # then  then
31  # rm -rf ${temp}   rm -rf ${temp}
32  # fi  fi
33  echo DEBUG:${temp}  
34  exit 0  exit 0

Legend:
Removed from v.795  
changed lines
  Added in v.797