source: trunk/build_support/tag_and_release.sh.in @ 2604

Last change on this file since 2604 was 2604, checked in by Peter, 12 years ago

add helper script for release procedure.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
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
23sf_user=peter31042
24
25# read config.txt if it exists
26test -f config.txt && . config.txt
27
28distdir=@PACKAGE@-@VERSION@
29dist_archive="${distdir}.tar.gz"
30
31
32# Create text for release announcement text
33write_announce_mail ()
34{
35
36cat <<EOF
37I'm happy to announce the release of @PACKAGE_STRING@.
38
39<INSERT TEXT HERE>
40
41You can find the new release here:
42
43http://sourceforge.net/projects/svndigest/files/${dist_archive}/download
44
45Here is the checksums:
46
47EOF
48printf "MD5:    "
49cat ${dist_archive}.MD5    | sed 's/ .*//'
50cat <<EOF
51
52Please report bugs by mail to @PACKAGE_BUGREPORT@
53
54This release was bootstrapped with the following tools:
55EOF
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/)//'
59cat <<EOF
60
61You can find the list of significant changes between @VERSION@ and
62earlier versions at
63
64  http://dev.thep.lu.se/yat/browser/tags/@VERSION@/NEWS     
65
66EOF
67}
68
69set -e
70
71make release
72make svn-tag
73echo "write announcement.txt"
74write_announce_mail > announcement.txt
75
76echo "upload to sourceforge"
77scp ${dist_archive} ${dist_archive}.MD5 $sf_user,libyat@frs.sourceforge.net:/home/frs/project/l/li/libyat/.
78
Note: See TracBrowser for help on using the repository browser.