Contents of /alx-src/tags/alxconf-0_6_9/make-tarball.sh
Parent Directory | Revision Log
Revision 545 -
(show annotations)
(download)
(as text)
Wed Feb 4 20:07:30 2009 UTC (15 years, 7 months ago) by niro
Original Path: alx-src/branches/alxconf_20060908/make-tarball.sh
File MIME type: application/x-sh
File size: 1328 byte(s)
Wed Feb 4 20:07:30 2009 UTC (15 years, 7 months ago) by niro
Original Path: alx-src/branches/alxconf_20060908/make-tarball.sh
File MIME type: application/x-sh
File size: 1328 byte(s)
moved from subdir to main branch dir
1 | #!/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 | destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${svn_module}/" |
10 | |
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 |