view admin/make-changelog-diff @ 49988:2076fa933620

* startup.el: Streamline code in several functions and use a more consistent idiom within the file, for ease of reading and maintenance. Rephrase booleans to avoid `(not noninteractive)'. Clarify several booleans expressions using De Morgan's laws. (command-line): Fix barf when first command-line option handled by `command-line-1' is in the form --OPT=VAL. (command-line-1): Restore intended behavior of the --directory/-L command-line option: "-L a -L b -L c" on the command-line now puts '(a b c) at the front of `load-path'.
author Matthew Swift <swift@alum.mit.edu>
date Wed, 26 Feb 2003 10:59:58 +0000
parents 7acb008e4f73
children 695cf19ef79e
line wrap: on
line source

#! /bin/bash

if [ $# -ne 2 ]; then
    echo "usage: $0 TAG1 TAG2" >&2
    exit 1
fi

if [ ! -f INSTALL -o ! -f configure -o ! -d lib-src ]; then
    echo "this script should be run in the emacs root directory" >&2
    exit 2
fi

cvs -q diff -b -r $1 -r $2 $(find -name ChangeLog|sort) |
    sed -n -e 's/^=\+/======/p' -e 's/^> //p' -e 's/^diff.*//p' \
	-e 's/^RCS file: .cvsroot.emacs.emacs.\(.*\),v/\1/p' |
    sed -n -e "/^======$/ {
                N
                N
                h
                d
               }
               H
               s/.*//
               x
               s/^\n//
	       p"