From ed226a5b34602bc476d5039fbc2e815b377d420f Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Wed, 7 Jun 2017 13:26:25 -0400 Subject: [PATCH] * make-dist: Use existing ChangeLog if present. --- make-dist | 14 ++++++++++---- 1 file 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 \ -- 2.39.2