Magellan Linux

Annotation of /alx-src/tags/alxconf_20060908_10/make-tarball.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 549 - (hide annotations) (download) (as text)
Thu Feb 5 08:11:13 2009 UTC (15 years, 3 months ago) by niro
Original Path: alx-src/branches/alxconf_20060908/make-tarball.sh
File MIME type: application/x-sh
File size: 1332 byte(s)
- fixed make-tarball
1 niro 544 #!/bin/bash
2    
3     temp=$(mktemp -d)
4     svn_base_uri="svn://cvs.magellan-linux.de/alx/alx-src"
5     svn_module="alxconf"
6     rev_keyword="${svn_module}"
7     branch="_20060908" # stick on 20060908 branch
8     tarball_prefix="alxconfig-ng"
9 niro 549 destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${tarball_prefix}/"
10 niro 544
11     latest_revision=$(svn ls --verbose ${svn_base_uri}/tags | grep ${rev_keyword}${branch} | sort -nr | sed -e 's:/::' | awk '{ print $6; exit; }')
12     latest_version=$(echo ${latest_revision} | sed -e "s:${rev_keyword}_::" -e 's:_:-r:g')
13    
14     echo -n "building tarball for ${latest_version}... "
15     cd ${temp}
16     svn checkout ${svn_base_uri}/tags/${latest_revision} ${svn_module}
17     # fix some import issues
18     if [[ -d ${temp}/${svn_module}/alxconfig-ng ]]
19     then
20     mv ${temp}/${svn_module}/alxconfig-ng/* ${temp}/${svn_module}
21     rm -rf ${temp}/${svn_module}/alxconfig-ng
22     fi
23     mv ${temp}/${svn_module} ${tarball_prefix}-${latest_version}
24     rm ./${tarball_prefix}-${latest_version}/make-tarball.sh
25     find ./${tarball_prefix}-${latest_version} -name .svn | xargs rm -r
26     find ./${tarball_prefix}-${latest_version} -name .svnignore | xargs rm
27     tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version}
28     scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination}
29    
30     if [[ -d ${temp} ]]
31     then
32     rm -rf ${temp}
33     fi
34    
35     exit 0

Properties

Name Value
svn:keywords Id