Switch license to GPLv3 or later.
[bpt/emacs.git] / admin / make-announcement
CommitLineData
fda1ff99
FP
1#! /bin/bash
2
87a09375
GM
3## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007
4## Free Software Foundation, Inc.
5
6## Author: Francesco Potorti` <pot@gnu.org>
7
8## This file is part of GNU Emacs.
9
10## GNU Emacs is free software; you can redistribute it and/or modify
11## it under the terms of the GNU General Public License as published by
4a9f99bd 12## the Free Software Foundation; either version 3, or (at your option)
87a09375
GM
13## any later version.
14
15## GNU Emacs is distributed in the hope that it will be useful,
16## but WITHOUT ANY WARRANTY; without even the implied warranty of
17## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18## GNU General Public License for more details.
19
20## You should have received a copy of the GNU General Public License
21## along with GNU Emacs; see the file COPYING. If not, write to the
22## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23## Boston, MA 02110-1301, USA.
24
25### Code:
26
fda1ff99
FP
27if [ $# -ne 2 ]; then
28 echo "usage: $0 <old version number> <new version number>" >&2
29 exit 1
30fi
31
32if [ ! -f INSTALL -o ! -f configure -o ! -d lib-src ]; then
33 echo "this script should be run in the emacs root directory" >&2
34 exit 2
35fi
36
37OLD=$1
38NEW=$2
39outfile=emacs-$NEW.announce
40oldtag=EMACS_PRETEST_$(echo $OLD|tr . _)
41newtag=EMACS_PRETEST_$(echo $NEW|tr . _)
42
43if [ -f $outfile ]; then
44 echo "$outfile exists"
45 echo -n "interrupt to abort, ENTER to overwrite "; read answer
46fi
47
7f5fce39 48echo -n "tag name for OLD emacs version $OLD [$oldtag]: "; read answer
fda1ff99
FP
49if [ "$answer" ]; then oldtag=$answer; fi
50
7f5fce39 51echo -n "tag name for NEW emacs version $NEW [$newtag]: "; read answer
fda1ff99
FP
52if [ "$answer" ]; then newtag=$answer; fi
53
54exec > $outfile
55
56cat <<EOF
3efda470 57
fda1ff99
FP
58There is a new pretest available in
59
60 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$NEW.tar.gz>
fda1ff99
FP
61
62Please report results from compiling and running the pretest to
63<emacs-pretest-bug@gnu.org>. Your feedback is necessary for us
64to know on which platforms the pretest has been tried.
65
66If you have the tars from the previous pretest, and you have the
67\`xdelta' utility, you can instead download the much smaller
68
69 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$OLD-$NEW.xdelta>
fda1ff99
FP
70
71You can use a command like
72
73 $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR
74
75to generate the new tar from the old one, where XDELTA is the xdelta
76file you downloaded, PREVIOUS-TAR is the tar file from the previous
77pretest, and CURRENT-TAR is the name of the tar file you downloaded.
78
79Information about xdelta can be found on the GNU ftp site, in
80/non-gnu/xdelta.README.
81
82Changes since $OLD
83
84EOF
85
4dce79e5 86make-changelog-diff $oldtag $newtag
fda1ff99
FP
87
88echo " announcement created in $outfile" >&2
ab5796a9
MB
89
90# arch-tag: 605e00c7-7330-4c45-81e1-2ed53a13c39f