make-changelog-diff 663 B

123456789101112131415161718192021222324252627282930
  1. #! /bin/bash
  2. ## Author: Francesco Potorti` <pot@gnu.org>
  3. if [ $# -ne 2 ]; then
  4. echo "usage: $0 TAG1 TAG2" >&2
  5. exit 1
  6. fi
  7. if [ ! -f INSTALL -o ! -f configure -o ! -d lib-src ]; then
  8. echo "this script should be run in the emacs root directory" >&2
  9. exit 2
  10. fi
  11. cvs -q diff -b -r $1 -r $2 $(find -name ChangeLog|sort) |
  12. sed -n -e 's/^=\+/======/p' -e 's/^> //p' -e 's/^diff.*//p' \
  13. -e 's/^RCS file: .cvsroot.emacs.emacs.\(.*\),v/\1/p' |
  14. sed -n -e "/^======$/ {
  15. N
  16. N
  17. h
  18. d
  19. }
  20. H
  21. s/.*//
  22. x
  23. s/^\n//
  24. p"