From dc151c000128cef231dfd88c6da43ad76cc08aeb Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Mon, 10 May 2021 10:42:53 -0700 Subject: Always include the test/ directory in tarfiles In hindsight, it's hard to see why not including it was ever an option. * make-dist: Always include the test/ directory. (with_tests): Remove. (--tests, --no-tests): Make these options no-ops. * Makefile.in (mostlyclean_dirs, maintainer_clean_dirs): Add "test". (mostlyclean, clean, distclean, maintainer-clean): Remove special-casing for "test". ($(CHECK_TARGETS)): Simplify. --- make-dist | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'make-dist') diff --git a/make-dist b/make-dist index 606fdd9e3a0..7074bb801be 100755 --- a/make-dist +++ b/make-dist @@ -52,7 +52,6 @@ make_tar=no default_gzip=gzip newer="" with_info=yes -with_tests=yes changelog=yes verbose=no @@ -109,16 +108,10 @@ while [ $# -gt 0 ]; do update=no ;; - ## Include the test/ directory. - ## This is for backward compatibility to when --no-tests was the default. - "--tests") - with_tests=yes + "--tests"|"--no-tests") + echo "The option $1 no longer does anything" ;; - ## Exclude the test/ directory. - "--no-tests") - with_tests=no - ;; "--verbose") verbose=yes @@ -136,7 +129,6 @@ while [ $# -gt 0 ]; do echo " --no-update don't recompile or do analogous things" echo " --no-changelog don't generate the top-level ChangeLog" echo " --no-info don't include info files" - echo " --no-tests don't include the test/ directory" echo " --snapshot same as --clean-up --no-update --tar" echo " --tar make a tar file" echo " --verbose noisier output" @@ -402,11 +394,7 @@ manifest=MANIFEST # if .git is present. if ( [ $update = yes ] || [ ! -f $manifest ] ) && [ -r .git ]; then echo "Updating $manifest" - if [ $with_tests = yes ]; then - git ls-files > $manifest - else - git ls-files | grep -v '^test' >$manifest - fi || exit + git ls-files > $manifest || exit printf '%s\n' $possibly_non_vc_files $info_files >>$manifest || exit sort -u -o $manifest $manifest || exit fi -- cgit v1.2.3