make-announcement 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #! /bin/bash
  2. ## Copyright (C) 2002-2012 Free Software Foundation, Inc.
  3. ## Author: Francesco Potorti` <pot@gnu.org>
  4. ## This file is part of GNU Emacs.
  5. ## GNU Emacs is free software: you can redistribute it and/or modify
  6. ## it under the terms of the GNU General Public License as published by
  7. ## the Free Software Foundation, either version 3 of the License, or
  8. ## (at your option) any later version.
  9. ## GNU Emacs is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ## GNU General Public License for more details.
  13. ## You should have received a copy of the GNU General Public License
  14. ## along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. ### Code:
  16. if [ $# -ne 2 ]; then
  17. echo "usage: $0 <old version number> <new version number>" >&2
  18. exit 1
  19. fi
  20. if [ ! -f INSTALL -o ! -f configure -o ! -d lib-src ]; then
  21. echo "this script should be run in the emacs root directory" >&2
  22. exit 2
  23. fi
  24. OLD=$1
  25. NEW=$2
  26. outfile=emacs-$NEW.announce
  27. oldtag=EMACS_PRETEST_$(echo $OLD|tr . _)
  28. newtag=EMACS_PRETEST_$(echo $NEW|tr . _)
  29. if [ -f $outfile ]; then
  30. echo "$outfile exists"
  31. echo -n "interrupt to abort, ENTER to overwrite "; read answer
  32. fi
  33. echo -n "tag name for OLD emacs version $OLD [$oldtag]: "; read answer
  34. if [ "$answer" ]; then oldtag=$answer; fi
  35. echo -n "tag name for NEW emacs version $NEW [$newtag]: "; read answer
  36. if [ "$answer" ]; then newtag=$answer; fi
  37. exec > $outfile
  38. cat <<EOF
  39. There is a new pretest available in
  40. <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$NEW.tar.gz>
  41. Please report results from compiling and running the pretest to
  42. <bug-gnu-emacs@gnu.org>. Your feedback is necessary for us
  43. to know on which platforms the pretest has been tried.
  44. If you have the tars from the previous pretest, and you have the
  45. \`xdelta' utility, you can instead download the much smaller
  46. <ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$OLD-$NEW.xdelta>
  47. You can use a command like
  48. $ xdelta patch XDELTA PREVIOUS-TAR CURRENT-TAR
  49. to generate the new tar from the old one, where XDELTA is the xdelta
  50. file you downloaded, PREVIOUS-TAR is the tar file from the previous
  51. pretest, and CURRENT-TAR is the name of the tar file you downloaded.
  52. Information about xdelta can be found on the GNU ftp site, in
  53. /non-gnu/xdelta.README.
  54. Changes since $OLD
  55. EOF
  56. make-changelog-diff $oldtag $newtag
  57. echo " announcement created in $outfile" >&2