diff options
author | Glenn Morris <rgm@gnu.org> | 2017-06-07 13:26:25 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2017-06-07 13:26:25 -0400 |
commit | ed226a5b34602bc476d5039fbc2e815b377d420f (patch) | |
tree | f62b5b669f6a0df03eff9ff48ee6f54f58dba41c /make-dist | |
parent | a9327a0afc23d00636b2c3b0ef767de34882bc87 (diff) | |
download | emacs-ed226a5b34602bc476d5039fbc2e815b377d420f.tar.gz |
* make-dist: Use existing ChangeLog if present.
Diffstat (limited to 'make-dist')
-rwxr-xr-x | make-dist | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/make-dist b/make-dist index 7e1f0dfb96c..0e012071640 100755 --- a/make-dist +++ b/make-dist @@ -345,9 +345,15 @@ mkdir ${tempdir} if [ "$changelog" = yes ]; then if test -e .git; then - echo "Making top-level ChangeLog" - make ChangeLog CHANGELOG=${tempdir}/ChangeLog || \ - { x=$?; echo "make ChangeLog FAILED (try --no-changelog?)" >&2; exit $x; } + ## When making a release or pretest the ChangeLog should already + ## have been created and edited as needed. Don't ignore it. + if test -e ChangeLog; then + echo "Using existing top-level ChangeLog" + else + echo "Making top-level ChangeLog" + make ChangeLog CHANGELOG=${tempdir}/ChangeLog || \ + { x=$?; echo "make ChangeLog FAILED (try --no-changelog?)" >&2; exit $x; } + fi else echo "No repository, so omitting top-level ChangeLog" fi @@ -361,7 +367,7 @@ echo "Making links to top-level files" ln INSTALL README BUGS ${tempdir} ln ChangeLog.*[0-9] Makefile.in autogen.sh configure configure.ac ${tempdir} ln config.bat make-dist .dir-locals.el ${tempdir} -ln aclocal.m4 CONTRIBUTE ${tempdir} +ln aclocal.m4 CONTRIBUTE ChangeLog ${tempdir} echo "Creating subdirectories" for subdir in site-lisp \ |