Commit | Line | Data |
---|---|---|
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 |
25 | if [ $# -ne 2 ]; then |
26 | echo "usage: $0 <old version number> <new version number>" >&2 | |
27 | exit 1 | |
28 | fi | |
29 | ||
30 | if [ ! -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 | |
33 | fi | |
34 | ||
35 | OLD=$1 | |
36 | NEW=$2 | |
37 | outfile=emacs-$NEW.announce | |
38 | oldtag=EMACS_PRETEST_$(echo $OLD|tr . _) | |
39 | newtag=EMACS_PRETEST_$(echo $NEW|tr . _) | |
40 | ||
41 | if [ -f $outfile ]; then | |
42 | echo "$outfile exists" | |
43 | echo -n "interrupt to abort, ENTER to overwrite "; read answer | |
44 | fi | |
45 | ||
7f5fce39 | 46 | echo -n "tag name for OLD emacs version $OLD [$oldtag]: "; read answer |
fda1ff99 FP |
47 | if [ "$answer" ]; then oldtag=$answer; fi |
48 | ||
7f5fce39 | 49 | echo -n "tag name for NEW emacs version $NEW [$newtag]: "; read answer |
fda1ff99 FP |
50 | if [ "$answer" ]; then newtag=$answer; fi |
51 | ||
52 | exec > $outfile | |
53 | ||
54 | cat <<EOF | |
3efda470 | 55 | |
fda1ff99 FP |
56 | There is a new pretest available in |
57 | ||
58 | <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$NEW.tar.gz> | |
fda1ff99 FP |
59 | |
60 | Please report results from compiling and running the pretest to | |
893db5bc | 61 | <bug-gnu-emacs@gnu.org>. Your feedback is necessary for us |
fda1ff99 FP |
62 | to know on which platforms the pretest has been tried. |
63 | ||
64 | If 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 | |
69 | You can use a command like | |
70 | ||
71 | $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR | |
72 | ||
73 | to generate the new tar from the old one, where XDELTA is the xdelta | |
74 | file you downloaded, PREVIOUS-TAR is the tar file from the previous | |
75 | pretest, and CURRENT-TAR is the name of the tar file you downloaded. | |
76 | ||
77 | Information about xdelta can be found on the GNU ftp site, in | |
78 | /non-gnu/xdelta.README. | |
79 | ||
80 | Changes since $OLD | |
81 | ||
82 | EOF | |
83 | ||
4dce79e5 | 84 | make-changelog-diff $oldtag $newtag |
fda1ff99 FP |
85 | |
86 | echo " announcement created in $outfile" >&2 | |
ab5796a9 | 87 |