source: trunk/build_support/gen_announce.sh.in @ 3018

Last change on this file since 3018 was 3018, checked in by Peter, 8 years ago

merge patch release 0.10.2 into trunk

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