Update nt/INSTALL.
[emacs.git] / admin / make-announcement
blob7d2482fc385182a706cb4b802aefde8e9f56bb0f
1 #! /bin/bash
3 ## Copyright (C) 2002-2013 Free Software Foundation, Inc.
5 ## Author: Francesco Potorti` <pot@gnu.org>
7 ## This file is part of GNU Emacs.
9 ## GNU Emacs is free software: you can redistribute it and/or modify
10 ## it under the terms of the GNU General Public License as published by
11 ## the Free Software Foundation, either version 3 of the License, or
12 ## (at your option) any later version.
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.
19 ## You should have received a copy of the GNU General Public License
20 ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
23 ### Code:
25 if [ $# -ne 2 ]; then
26 echo "usage: $0 <old version number> <new version number>" >&2
27 exit 1
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
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 . _)
41 if [ -f $outfile ]; then
42 echo "$outfile exists"
43 echo -n "interrupt to abort, ENTER to overwrite "; read answer
46 echo -n "tag name for OLD emacs version $OLD [$oldtag]: "; read answer
47 if [ "$answer" ]; then oldtag=$answer; fi
49 echo -n "tag name for NEW emacs version $NEW [$newtag]: "; read answer
50 if [ "$answer" ]; then newtag=$answer; fi
52 exec > $outfile
54 cat <<EOF
56 There is a new pretest available in
58 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$NEW.tar.gz>
60 Please report results from compiling and running the pretest to
61 <bug-gnu-emacs@gnu.org>. Your feedback is necessary for us
62 to know on which platforms the pretest has been tried.
64 If you have the tars from the previous pretest, and you have the
65 \`xdelta' utility, you can instead download the much smaller
67 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$OLD-$NEW.xdelta>
69 You can use a command like
71 $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR
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.
77 Information about xdelta can be found on the GNU ftp site, in
78 /non-gnu/xdelta.README.
80 Changes since $OLD
82 EOF
84 make-changelog-diff $oldtag $newtag
86 echo " announcement created in $outfile" >&2