Magellan Linux

Diff of /tags/udev-185-r4/make-tarball.sh

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

revision 1125 by niro, Mon Sep 13 14:09:30 2010 UTC revision 1506 by niro, Fri Aug 26 19:18:31 2011 UTC
# Line 4  temp=$(mktemp -d) Line 4  temp=$(mktemp -d)
4  svn_base_uri="svn://cvs.magellan-linux.de/pkg-src"  svn_base_uri="svn://cvs.magellan-linux.de/pkg-src"
5  svn_module="udev"  svn_module="udev"
6  rev_keyword="${svn_module}"  rev_keyword="${svn_module}"
7  tarball_prefix="config_udev"  tarball_prefix="config-udev"
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 -nr | 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; }')
# Line 19  then Line 19  then
19   mv ${temp}/${svn_module}/${svn_module}/* ${temp}/${svn_module}   mv ${temp}/${svn_module}/${svn_module}/* ${temp}/${svn_module}
20   rm -rf ${temp}/${svn_module}/${svn_module}   rm -rf ${temp}/${svn_module}/${svn_module}
21  fi  fi
22    # remove patches directory from tarball
23    if [[ -d ${temp}/${svn_module}/patches ]]
24    then
25     rm -rf ${temp}/${svn_module}/patches
26    fi
27  mv ${temp}/${svn_module} ${tarball_prefix}-${latest_version}  mv ${temp}/${svn_module} ${tarball_prefix}-${latest_version}
28  rm ./${tarball_prefix}-${latest_version}/make-tarball.sh  rm ./${tarball_prefix}-${latest_version}/make-tarball.sh
29  find ./${tarball_prefix}-${latest_version} -name .svn | xargs rm -r  find ./${tarball_prefix}-${latest_version} -name .svn | xargs rm -r

Legend:
Removed from v.1125  
changed lines
  Added in v.1506