Annotation of /trunk/mplayer/make-svn-snapshot.sh
Parent Directory | Revision Log
Revision 1437 -
(hide annotations)
(download)
(as text)
Fri Jul 22 15:10:19 2011 UTC (13 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 976 byte(s)
Fri Jul 22 15:10:19 2011 UTC (13 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 976 byte(s)
-check out ffmpeg via git too
1 | niro | 1163 | #!/bin/bash |
2 | |||
3 | export LC_ALL=C | ||
4 | |||
5 | temp=$(mktemp -d) | ||
6 | svn_base_uri="svn://svn.mplayerhq.hu/mplayer/trunk" | ||
7 | svn_module="mplayer" | ||
8 | tarball_prefix="${svn_module}" | ||
9 | destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${svn_module}/" | ||
10 | |||
11 | echo -n "building latest tarball for ${tarball_prefix}... " | ||
12 | cd ${temp} | ||
13 | svn checkout ${svn_base_uri} ${svn_module} | ||
14 | |||
15 | niro | 1437 | # check out git ffmpeg via provided configure |
16 | pushd ${temp}/${svn_module} | ||
17 | yes | ./configure --help | ||
18 | popd | ||
19 | |||
20 | niro | 1163 | latest_version="1.0_svn$(svn info ${svn_module} | grep Revision | sed 's:.*\:\ \(.*\):\1:')" |
21 | |||
22 | mv ${temp}/${svn_module} ${tarball_prefix}-${latest_version} | ||
23 | find ./${tarball_prefix}-${latest_version} -name .svn | xargs rm -r | ||
24 | find ./${tarball_prefix}-${latest_version} -name .svnignore | xargs rm | ||
25 | tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version} | ||
26 | scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination} | ||
27 | |||
28 | if [[ -d ${temp} ]] | ||
29 | then | ||
30 | rm -rf ${temp} | ||
31 | fi | ||
32 | |||
33 | exit 0 |