diff gnulib-tool @ 9284:afba4e078ebc

Synthesize an EXTRA_DIST augmentation also for tests modules.
author Bruno Haible <bruno@clisp.org>
date Thu, 04 Oct 2007 03:42:26 +0200
parents 1c749136a76e
children bbbbbf4cd1c5
line wrap: on
line diff
--- a/gnulib-tool	Thu Oct 04 03:23:10 2007 +0200
+++ b/gnulib-tool	Thu Oct 04 03:42:26 2007 +0200
@@ -1247,6 +1247,18 @@
   case "$1" in
     *-tests)
       # *-tests module live in tests/, not lib/.
+      # Synthesize an EXTRA_DIST augmentation.
+      all_files=`func_get_filelist $1`
+      tests_files=`for f in $all_files; do \
+                     case $f in \
+                       tests/*) echo $f ;; \
+                     esac; \
+                   done | sed -e 's,^tests/,,'`
+      extra_files="$tests_files"
+      if test -n "$extra_files"; then
+        echo "EXTRA_DIST +=" $extra_files
+        echo
+      fi
       ;;
     *)
       # Synthesize an EXTRA_DIST augmentation.