1 | #!/bin/sh |
---|
2 | #$Id: tag_and_release.sh.in 2604 2011-10-31 04:23:42Z peter $ |
---|
3 | |
---|
4 | # Copyright (C) 2011 Peter Johansson |
---|
5 | # |
---|
6 | # This file is part of yat, http://dev.thep.lu.se/yat |
---|
7 | # |
---|
8 | # This program is free software; you can redistribute it and/or modify |
---|
9 | # it under the terms of the GNU General Public License as published by |
---|
10 | # the Free Software Foundation; either version 3 of the License, or |
---|
11 | # (at your option) any later version. |
---|
12 | # |
---|
13 | # This is distributed in the hope that it will be useful, but |
---|
14 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | # General Public License for more details. |
---|
17 | # |
---|
18 | # You should have received a copy of the GNU General Public License |
---|
19 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | |
---|
21 | # default config values |
---|
22 | # you can override these values in a file config.txt |
---|
23 | sf_user=peter31042 |
---|
24 | |
---|
25 | # read config.txt if it exists |
---|
26 | test -f config.txt && . config.txt |
---|
27 | |
---|
28 | distdir=@PACKAGE@-@VERSION@ |
---|
29 | dist_archive="${distdir}.tar.gz" |
---|
30 | |
---|
31 | |
---|
32 | # Create text for release announcement text |
---|
33 | write_announce_mail () |
---|
34 | { |
---|
35 | |
---|
36 | cat <<EOF |
---|
37 | I'm happy to announce the release of @PACKAGE_STRING@. |
---|
38 | |
---|
39 | <INSERT TEXT HERE> |
---|
40 | |
---|
41 | You can find the new release here: |
---|
42 | |
---|
43 | http://sourceforge.net/projects/svndigest/files/${dist_archive}/download |
---|
44 | |
---|
45 | Here is the checksums: |
---|
46 | |
---|
47 | EOF |
---|
48 | printf "MD5: " |
---|
49 | cat ${dist_archive}.MD5 | sed 's/ .*//' |
---|
50 | cat <<EOF |
---|
51 | |
---|
52 | Please report bugs by mail to @PACKAGE_BUGREPORT@ |
---|
53 | |
---|
54 | This release was bootstrapped with the following tools: |
---|
55 | EOF |
---|
56 | @AUTOCONF@ --version | head -n 1 | sed -e 's/.*(//' -e 's/)//' |
---|
57 | @AUTOMAKE@ --version | head -n 1 | sed -e 's/.*(//' -e 's/)//' |
---|
58 | @LIBTOOL@ --version | head -n 1 | sed -e 's/.*(//' -e 's/)//' |
---|
59 | cat <<EOF |
---|
60 | |
---|
61 | You can find the list of significant changes between @VERSION@ and |
---|
62 | earlier versions at |
---|
63 | |
---|
64 | http://dev.thep.lu.se/yat/browser/tags/@VERSION@/NEWS |
---|
65 | |
---|
66 | EOF |
---|
67 | } |
---|
68 | |
---|
69 | set -e |
---|
70 | |
---|
71 | make release |
---|
72 | make svn-tag |
---|
73 | echo "write announcement.txt" |
---|
74 | write_announce_mail > announcement.txt |
---|
75 | |
---|
76 | echo "upload to sourceforge" |
---|
77 | scp ${dist_archive} ${dist_archive}.MD5 $sf_user,libyat@frs.sourceforge.net:/home/frs/project/l/li/libyat/. |
---|
78 | |
---|