Annotation of /trunk/xdg-utils/make-cvs-snapshot.sh
Parent Directory | Revision Log
Revision 1167 -
(hide annotations)
(download)
(as text)
Thu Sep 30 18:47:11 2010 UTC (14 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 864 byte(s)
Thu Sep 30 18:47:11 2010 UTC (14 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 864 byte(s)
added cvs snapshot script
1 | niro | 1167 | #!/bin/bash |
2 | |||
3 | export LC_ALL=C | ||
4 | |||
5 | temp=$(mktemp -d) | ||
6 | cvs_base_uri=":pserver:anonymous@cvs.freedesktop.org:/cvs/portland" | ||
7 | cvs_module="portland/xdg-utils" | ||
8 | tarball_prefix="${cvs_module##*/}" | ||
9 | destination="root@cvs.magellan-linux.de:/var/www/htdocs/magellan/magellan-dev/sources/${cvs_module##*/}/" | ||
10 | |||
11 | echo -n "building latest tarball for ${tarball_prefix}... " | ||
12 | cd ${temp} | ||
13 | cvs -z3 -d ${cvs_base_uri} checkout -P ${cvs_module} | ||
14 | |||
15 | latest_version="1.0.2_$(date +%Y%m%d)" | ||
16 | |||
17 | mv -v ${temp}/${cvs_module} ${tarball_prefix}-${latest_version} | ||
18 | find ./${tarball_prefix}-${latest_version} -name CVS | xargs rm -r | ||
19 | find ./${tarball_prefix}-${latest_version} -name .cvsignore | xargs rm | ||
20 | tar cvjf ${tarball_prefix}-${latest_version}.tar.bz2 ./${tarball_prefix}-${latest_version} | ||
21 | scp ${tarball_prefix}-${latest_version}.tar.bz2 ${destination} | ||
22 | |||
23 | if [[ -d ${temp} ]] | ||
24 | then | ||
25 | rm -rf ${temp} | ||
26 | fi | ||
27 | |||
28 | exit 0 |