make-announcement 1.9 KB

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