Annotation of /alx-src/tags/alxconf-0_6_2/make-tarball.sh
Parent Directory | Revision Log
Revision 3264 -
(hide annotations)
(download)
(as text)
Wed Sep 28 15:00:19 2011 UTC (13 years ago) by niro
File MIME type: application/x-sh
File size: 1320 byte(s)
Wed Sep 28 15:00:19 2011 UTC (13 years ago) by niro
File MIME type: application/x-sh
File size: 1320 byte(s)
tagged 'alxconf-0_6_2'
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 | niro | 2171 | branch="" # stick on latest branch |
8 | niro | 544 | 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 | niro | 2174 | latest_version=$(echo ${latest_revision} | sed -e "s:${rev_keyword}-::" -e 's:_:.:g') |
13 | niro | 544 | |
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 |