Ensure that also files under build-aux/ are distributed.
authorBruno Haible <bruno@clisp.org>
Wed, 18 Jul 2007 23:45:37 +0000 (23:45 +0000)
committerBruno Haible <bruno@clisp.org>
Wed, 18 Jul 2007 23:45:37 +0000 (23:45 +0000)
ChangeLog
gnulib-tool

index b5f97f5..3e4dfb0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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+".
index 35ff7c4..f975971 100755 (executable)
@@ -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 @@ func_get_automake_snippet ()
           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
 }