Mercurial > emacs
comparison admin/make-announcement @ 48804:32e11c5dadbe
A script that creates the announcement for a pretest.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Wed, 11 Dec 2002 10:00:52 +0000 |
parents | |
children | 8bbce2893414 |
comparison
equal
deleted
inserted
replaced
48803:dc2f14ae219f | 48804:32e11c5dadbe |
---|---|
1 #! /bin/bash | |
2 | |
3 if [ $# -ne 2 ]; then | |
4 echo "usage: $0 <old version number> <new version number>" >&2 | |
5 exit 1 | |
6 fi | |
7 | |
8 if [ ! -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 | |
11 fi | |
12 | |
13 OLD=$1 | |
14 NEW=$2 | |
15 outfile=emacs-$NEW.announce | |
16 oldtag=EMACS_PRETEST_$(echo $OLD|tr . _) | |
17 newtag=EMACS_PRETEST_$(echo $NEW|tr . _) | |
18 | |
19 if [ -f $outfile ]; then | |
20 echo "$outfile exists" | |
21 echo -n "interrupt to abort, ENTER to overwrite "; read answer | |
22 fi | |
23 | |
24 echo -n "tag name for emacs $OLD [$oldtag]: "; read answer | |
25 if [ "$answer" ]; then oldtag=$answer; fi | |
26 | |
27 echo -n "tag name for emacs $NEW [$newtag]: "; read answer | |
28 if [ "$answer" ]; then newtag=$answer; fi | |
29 | |
30 exec > $outfile | |
31 | |
32 cat <<EOF | |
33 There 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 | |
38 Please report results from compiling and running the pretest to | |
39 <emacs-pretest-bug@gnu.org>. Your feedback is necessary for us | |
40 to know on which platforms the pretest has been tried. | |
41 | |
42 If you have the tars from the previous pretest, and you have the | |
43 \`xdelta' utility, you can instead download the much smaller | |
44 | |
45 <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$OLD-$NEW.xdelta> | |
46 <ftp://alpha.gnu.org/gnu/emacs/pretest/leim-$OLD-$NEW.xdelta> | |
47 | |
48 You can use a command like | |
49 | |
50 $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR | |
51 | |
52 to generate the new tar from the old one, where XDELTA is the xdelta | |
53 file you downloaded, PREVIOUS-TAR is the tar file from the previous | |
54 pretest, and CURRENT-TAR is the name of the tar file you downloaded. | |
55 | |
56 Information about xdelta can be found on the GNU ftp site, in | |
57 /non-gnu/xdelta.README. | |
58 | |
59 Changes since $OLD | |
60 | |
61 EOF | |
62 | |
63 cvs -q diff -b -r $oldtag -r $newtag $(find -name ChangeLog|sort) | | |
64 sed -n -e 's/^=\+//p' -e 's/^> //p' -e 's/^diff.*//p' \ | |
65 -e 's/^RCS file: .cvsroot.emacs.emacs.\(.*\),v/\1/p' | |
66 | |
67 echo " announcement created in $outfile" >&2 |