Sync to HEAD
[bpt/emacs.git] / admin / make-announcement
CommitLineData
fda1ff99
FP
1#! /bin/bash
2
3if [ $# -ne 2 ]; then
4 echo "usage: $0 <old version number> <new version number>" >&2
5 exit 1
6fi
7
8if [ ! -f INSTALL -o ! -f configure -o ! -d lib-src ]; then
9 echo "this script should be run in the emacs root directory" >&2
10 exit 2
11fi
12
13OLD=$1
14NEW=$2
15outfile=emacs-$NEW.announce
16oldtag=EMACS_PRETEST_$(echo $OLD|tr . _)
17newtag=EMACS_PRETEST_$(echo $NEW|tr . _)
18
19if [ -f $outfile ]; then
20 echo "$outfile exists"
21 echo -n "interrupt to abort, ENTER to overwrite "; read answer
22fi
23
7f5fce39 24echo -n "tag name for OLD emacs version $OLD [$oldtag]: "; read answer
fda1ff99
FP
25if [ "$answer" ]; then oldtag=$answer; fi
26
7f5fce39 27echo -n "tag name for NEW emacs version $NEW [$newtag]: "; read answer
fda1ff99
FP
28if [ "$answer" ]; then newtag=$answer; fi
29
30exec > $outfile
31
32cat <<EOF
33There is a new pretest available in
34
35 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$NEW.tar.gz>
36 <ftp://alpha.gnu.org/gnu/emacs/pretest/leim-$NEW.tar.gz>
37
38Please report results from compiling and running the pretest to
39<emacs-pretest-bug@gnu.org>. Your feedback is necessary for us
40to know on which platforms the pretest has been tried.
2bfe1b7a 41Please say whether you built with LEIM or not.
fda1ff99
FP
42
43If you have the tars from the previous pretest, and you have the
44\`xdelta' utility, you can instead download the much smaller
45
46 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$OLD-$NEW.xdelta>
47 <ftp://alpha.gnu.org/gnu/emacs/pretest/leim-$OLD-$NEW.xdelta>
48
49You can use a command like
50
51 $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR
52
53to generate the new tar from the old one, where XDELTA is the xdelta
54file you downloaded, PREVIOUS-TAR is the tar file from the previous
55pretest, and CURRENT-TAR is the name of the tar file you downloaded.
56
57Information about xdelta can be found on the GNU ftp site, in
58/non-gnu/xdelta.README.
59
60Changes since $OLD
61
62EOF
63
4dce79e5 64make-changelog-diff $oldtag $newtag
fda1ff99
FP
65
66echo " announcement created in $outfile" >&2
6b61353c
KH
67
68# arch-tag: 605e00c7-7330-4c45-81e1-2ed53a13c39f