changeset 9107:2878e8c70604

Ensure that also files under build-aux/ are distributed.
author Bruno Haible <bruno@clisp.org>
date Wed, 18 Jul 2007 23:45:37 +0000
parents e5615537b0f3
children 33eb494700d6
files ChangeLog gnulib-tool
diffstat 2 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Jul 16 10:59:38 2007 +0000
+++ b/ChangeLog	Wed Jul 18 23:45:37 2007 +0000
@@ -1,3 +1,8 @@
+2007-07-18  Bruno Haible  <bruno@clisp.org>
+
+	* gnulib-tool (func_get_automake_snippet): Synthesize also an
+	EXTRA_DIST augmentation for files in build-aux/.
+
 2007-07-16  Bruno Haible  <bruno@clisp.org>
 
 	* modules/lseek (License): Use the synonymous term "LGPLv2+".
--- a/gnulib-tool	Mon Jul 16 10:59:38 2007 +0000
+++ b/gnulib-tool	Wed Jul 18 23:45:37 2007 +0000
@@ -22,7 +22,7 @@
 
 progname=$0
 package=gnulib
-cvsdatestamp='$Date: 2007-07-14 01:42:14 $'
+cvsdatestamp='$Date: 2007-07-18 23:45:37 $'
 last_checkin_date=`echo "$cvsdatestamp" | sed -e 's,^\$[D]ate: ,,'`
 version=`echo "$last_checkin_date" | sed -e 's/ .*$//' -e 's,/,-,g'`
 nl='
@@ -1223,6 +1223,17 @@
           fi
           ;;
       esac
+      # Synthesize an EXTRA_DIST augmentation also for the files in build-aux/.
+      buildaux_files=`for f in $all_files; do \
+                        case $f in \
+                          build-aux/*) echo $f ;; \
+                        esac; \
+                      done | sed -e 's,^build-aux/,,'`
+      if test -n "$buildaux_files"; then
+        sed_prepend_auxdir='s,^,$(top_srcdir)/'"$auxdir"'/,'
+        echo "EXTRA_DIST += "`echo "$buildaux_files" | sed -e "$sed_prepend_auxdir"`
+        echo
+      fi
       ;;
   esac
 }