annotate admin/make-announcement @ 93490:2fd8322cee67

(Commentary): Point to calendar.el. (solar-equinoxes-solstices): Reduce nesting of some lets.
author Glenn Morris <rgm@gnu.org>
date Tue, 01 Apr 2008 02:44:52 +0000
parents cde444d03b82
children 606f2d163a64 e6db9ee945b8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48804
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
1 #! /bin/bash
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
2
79744
cde444d03b82 Add 2008 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 78240
diff changeset
3 ## Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008
75651
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
4 ## Free Software Foundation, Inc.
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
5
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
6 ## Author: Francesco Potorti` <pot@gnu.org>
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
7
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
8 ## This file is part of GNU Emacs.
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
9
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
10 ## GNU Emacs is free software; you can redistribute it and/or modify
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
11 ## it under the terms of the GNU General Public License as published by
78240
450fa81c5930 Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents: 75651
diff changeset
12 ## the Free Software Foundation; either version 3, or (at your option)
75651
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
13 ## any later version.
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
14
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
15 ## GNU Emacs is distributed in the hope that it will be useful,
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
16 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
17 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
18 ## GNU General Public License for more details.
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
19
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
20 ## You should have received a copy of the GNU General Public License
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
21 ## along with GNU Emacs; see the file COPYING. If not, write to the
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
22 ## Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
23 ## Boston, MA 02110-1301, USA.
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
24
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
25 ### Code:
16e7738bd009 Add copyright and license notice.
Glenn Morris <rgm@gnu.org>
parents: 73515
diff changeset
26
48804
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
27 if [ $# -ne 2 ]; then
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
28 echo "usage: $0 <old version number> <new version number>" >&2
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
29 exit 1
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
30 fi
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
31
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
32 if [ ! -f INSTALL -o ! -f configure -o ! -d lib-src ]; then
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
33 echo "this script should be run in the emacs root directory" >&2
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
34 exit 2
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
35 fi
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
36
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
37 OLD=$1
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
38 NEW=$2
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
39 outfile=emacs-$NEW.announce
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
40 oldtag=EMACS_PRETEST_$(echo $OLD|tr . _)
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
41 newtag=EMACS_PRETEST_$(echo $NEW|tr . _)
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
42
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
43 if [ -f $outfile ]; then
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
44 echo "$outfile exists"
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
45 echo -n "interrupt to abort, ENTER to overwrite "; read answer
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
46 fi
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
47
49343
0c32620c3c06 Clarify prompts.
Francesco Potortì <pot@gnu.org>
parents: 48817
diff changeset
48 echo -n "tag name for OLD emacs version $OLD [$oldtag]: "; read answer
48804
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
49 if [ "$answer" ]; then oldtag=$answer; fi
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
50
49343
0c32620c3c06 Clarify prompts.
Francesco Potortì <pot@gnu.org>
parents: 48817
diff changeset
51 echo -n "tag name for NEW emacs version $NEW [$newtag]: "; read answer
48804
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
52 if [ "$answer" ]; then newtag=$answer; fi
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
53
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
54 exec > $outfile
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
55
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
56 cat <<EOF
69704
53c1af431f97 FIXME - links of ftp://alpha.gnu.org/ for GNU Emacs pretest has to be fixed
Ramprasad B <ramprasad_i82@yahoo.com>
parents: 52401
diff changeset
57
48804
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
58 There is a new pretest available in
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
59
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
60 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$NEW.tar.gz>
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
61
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
62 Please report results from compiling and running the pretest to
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
63 <emacs-pretest-bug@gnu.org>. Your feedback is necessary for us
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
64 to know on which platforms the pretest has been tried.
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
65
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
66 If you have the tars from the previous pretest, and you have the
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
67 \`xdelta' utility, you can instead download the much smaller
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
68
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
69 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$OLD-$NEW.xdelta>
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
70
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
71 You can use a command like
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
72
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
73 $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
74
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
75 to generate the new tar from the old one, where XDELTA is the xdelta
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
76 file you downloaded, PREVIOUS-TAR is the tar file from the previous
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
77 pretest, and CURRENT-TAR is the name of the tar file you downloaded.
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
78
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
79 Information about xdelta can be found on the GNU ftp site, in
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
80 /non-gnu/xdelta.README.
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
81
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
82 Changes since $OLD
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
83
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
84 EOF
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
85
49683
6c4021c20d1f Code moved to the new script make-changelog-diff, called from here.
Francesco Potortì <pot@gnu.org>
parents: 49344
diff changeset
86 make-changelog-diff $oldtag $newtag
48804
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
87
32e11c5dadbe A script that creates the announcement for a pretest.
Francesco Potortì <pot@gnu.org>
parents:
diff changeset
88 echo " announcement created in $outfile" >&2
52401
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49683
diff changeset
89
695cf19ef79e Add arch taglines
Miles Bader <miles@gnu.org>
parents: 49683
diff changeset
90 # arch-tag: 605e00c7-7330-4c45-81e1-2ed53a13c39f