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