Contents of /trunk/xf86-video-openchrome/make-svn-snapshot.sh
Parent Directory | Revision Log
Revision 1018 -
(show annotations)
(download)
(as text)
Mon Apr 12 21:22:14 2010 UTC (14 years, 5 months ago) by niro
File MIME type: application/x-sh
File size: 926 byte(s)
Mon Apr 12 21:22:14 2010 UTC (14 years, 5 months ago) by niro
File MIME type: application/x-sh
File size: 926 byte(s)
-added snapshot-tool
1 | #!/bin/bash |
2 | |
3 | export LC_ALL=C |
4 | |
5 | temp=$(mktemp -d) |
6 | svn_base_uri="http://svn.openchrome.org/svn/trunk" |
7 | svn_module="openchrome" |
8 | tarball_prefix="xf86-video-${svn_module}" |
9 | destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${tarball_prefix}/" |
10 | |
11 | echo -n "building latest tarball for ${tarball_prefix}... " |
12 | cd ${temp} |
13 | svn checkout ${svn_base_uri} ${svn_module} |
14 | |
15 | latest_revision=$(svn info ${svn_module} | grep Rev: | sed 's:.*Rev\:\ \(.*\):\1:') |
16 | latest_version="0.2.904_svn${latest_revision}" |
17 | |
18 | mv ${temp}/${svn_module} ${tarball_prefix}-${latest_version} |
19 | find ./${tarball_prefix}-${latest_version} -name .svn | xargs rm -r |
20 | find ./${tarball_prefix}-${latest_version} -name .svnignore | xargs rm |
21 | tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version} |
22 | scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination} |
23 | |
24 | if [[ -d ${temp} ]] |
25 | then |
26 | rm -rf ${temp} |
27 | fi |
28 | |
29 | exit 0 |