From: Jim Meyering Date: Thu, 28 Sep 2006 18:33:19 +0000 (+0000) Subject: Automatically generated dependencies are important even X-Git-Tag: v6.3~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d37c3b8c6de1e1d18dfa54adae4b811e9cbe76f1;p=thirdparty%2Fcoreutils.git Automatically generated dependencies are important even when all of the sources in a directory come from gnulib. * bootstrap (gnulib_tool): Remove the "no-dependencies" automake option that gnulib-tool adds to what becomes our lib/gnulib.mk. --- diff --git a/ChangeLog b/ChangeLog index 524b245dd3..e5a3539650 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-09-28 Jim Meyering + Automatically generated dependencies are important even + when all of the sources in a directory come from gnulib. + * bootstrap (gnulib_tool): Remove the "no-dependencies" automake + option that gnulib-tool adds to what becomes our lib/gnulib.mk. + * tests/rm/fail-eperm: Enable Perl's (-T) taint checking. Ensure that IFS is set properly and unset PATH. Sanitize inputs. diff --git a/bootstrap b/bootstrap index 93cfd623cf..a9124017ad 100755 --- a/bootstrap +++ b/bootstrap @@ -326,10 +326,13 @@ slurp() { if test $file = Makefile.am; then copied=$copied${sep}gnulib.mk; sep=$nl remove_intl='/^[^#].*\/intl/s/^/#/' - sed "$remove_intl" $1/$dir/$file | cmp -s - $dir/gnulib.mk || { + no_dep=no-dependencies + remove_no_dep="/^AUTOMAKE_OPTIONS =.* $no_dep/s/ $no_dep//" + sed_xform="$remove_intl;$remove_no_dep" + sed "$sed_xform" $1/$dir/$file | cmp -s - $dir/gnulib.mk || { echo "$0: Copying $1/$dir/$file to $dir/gnulib.mk ..." && rm -f $dir/gnulib.mk && - sed "$remove_intl" $1/$dir/$file >$dir/gnulib.mk + sed "$sed_xform" $1/$dir/$file >$dir/gnulib.mk } elif { test "${2+set}" = set && test -r $2/$dir/$file; } || grep -F "/$file/" $dir/CVS/Entries 2>/dev/null |