From 43acd6749a29f079452cfb70b6c6e1c8f1469128 Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sun, 16 Sep 2012 11:34:19 +0700 Subject: [PATCH] bootstrap: ensure there is a ChangeLog before running automake. Automake refuses to run in GNU-mode unless there is a ChangeLog file in the top-level directory. * bootstrap.conf (libtool_force_changelog): Create a dummy ChangeLog. Signed-off-by: Gary V. Vaughan --- bootstrap.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bootstrap.conf b/bootstrap.conf index f7bc1ac0..178cc747 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -342,6 +342,18 @@ libtool_build_prerequisites () func_add_hook func_gnulib_tool libtool_build_prerequisites +# libtool_force_changelog +# ----------------------- +# Automake requires that ChangeLog exist. +libtool_force_changelog () +{ + $debug_cmd + + echo "Autogenerated by \`make dist'" > ChangeLog || exit 1 +} +func_add_hook func_gnulib_tool libtool_force_changelog + + # libtool_readme_release_package_substitutions # -------------------------------------------- # Show our own package details instead of generic strings.