Annotation of /trunk/busybox/mcore-theme-busybox/make-tarball.sh
Parent Directory | Revision Log
Revision 1265 -
(hide annotations)
(download)
(as text)
Fri Jan 28 19:09:59 2011 UTC (13 years, 9 months ago) by niro
File MIME type: application/x-sh
File size: 1304 byte(s)
Fri Jan 28 19:09:59 2011 UTC (13 years, 9 months ago) by niro
File MIME type: application/x-sh
File size: 1304 byte(s)
-added default mcore fbsplash theme for busybox
1 | niro | 1265 | #!/bin/bash |
2 | |||
3 | temp=$(mktemp -d) | ||
4 | svn_base_uri="svn://cvs.magellan-linux.de/pkg-src" | ||
5 | svn_module="busybox/mcore-theme-busybox" | ||
6 | rev_keyword="mcore-theme-busybox" | ||
7 | tarball_prefix="mcore-theme-busybox" | ||
8 | 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; }') | ||
11 | latest_version=$(echo ${latest_revision} | sed -e "s:${rev_keyword}-::" -e 's:_:.:g') | ||
12 | |||
13 | echo -n "building tarball for ${latest_version}... " | ||
14 | cd ${temp} | ||
15 | svn checkout ${svn_base_uri}/tags/${latest_revision} ${svn_module} | ||
16 | # fix some import issues | ||
17 | if [[ -d ${temp}/${svn_module}/${svn_module} ]] | ||
18 | then | ||
19 | mv ${temp}/${svn_module}/${svn_module}/* ${temp}/${svn_module} | ||
20 | rm -rf ${temp}/${svn_module}/${svn_module} | ||
21 | fi | ||
22 | mv ${temp}/${svn_module} ${tarball_prefix}-${latest_version} | ||
23 | rm ./${tarball_prefix}-${latest_version}/make-tarball.sh | ||
24 | find ./${tarball_prefix}-${latest_version} -name .svn | xargs rm -r | ||
25 | find ./${tarball_prefix}-${latest_version} -name .svnignore | xargs rm | ||
26 | tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version} | ||
27 | scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination} | ||
28 | |||
29 | if [[ -d ${temp} ]] | ||
30 | then | ||
31 | rm -rf ${temp} | ||
32 | fi | ||
33 | |||
34 | exit 0 |