]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoreconf.sh (find): Fix precedence.
authorAkim Demaille <akim@epita.fr>
Fri, 26 Jan 2001 16:10:42 +0000 (16:10 +0000)
committerAkim Demaille <akim@epita.fr>
Fri, 26 Jan 2001 16:10:42 +0000 (16:10 +0000)
(aclocal): Same as below for autoheader.

ChangeLog
autoreconf.in
autoreconf.sh
bin/autoreconf.in

index d45873452283d2e7b96afa2a9a8c53fda42c6fab..df0c2ae935e78390ca770376b65a0366e19084b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-26  Assar Westerlund  <assar@sics.se>
+
+       * autoreconf.sh (find): Fix precedence.
+       (aclocal): Same as below for autoheader.
+
 2001-01-26  Akim Demaille  <akim@epita.fr>
 
        * autoreconf.sh (autoheader): Run it when there is no template, as
index 6ecabf7566f7c6b371eb3374c2952f8da96c330a..6b285a313b451d942b3cfa625b86054f85292630 100644 (file)
@@ -298,7 +298,7 @@ update="@SHELL@ $tmp/update.sh"
 
 # Make a list of directories to process.
 # The xargs grep filters out Cygnus configure.in files.
-find . -name configure.ac -o -name configure.in -print |
+find . '(' -name configure.ac -o -name configure.in ')' -print |
 xargs grep -l AC_INIT |
 sed 's,/configure\.ac$,,;s,/configure\.in$,,;s,^./,,' |
 while read dir; do
@@ -312,10 +312,10 @@ while read dir; do
 
   # uses_aclocal -- is this package using aclocal?
   uses_aclocal=false
-  if grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 ||
-     test -f "$localdir/acinclude.m4"; then
+  grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 &&
+     uses_aclocal=:
+  test -f "$localdir/aclocal.m4" ||
      uses_aclocal=:
-  fi
   if $uses_aclocal &&
      { $force ||
        $update $localdir/aclocal.m4 $localdir/acinclude.m4; } then
index 6ecabf7566f7c6b371eb3374c2952f8da96c330a..6b285a313b451d942b3cfa625b86054f85292630 100644 (file)
@@ -298,7 +298,7 @@ update="@SHELL@ $tmp/update.sh"
 
 # Make a list of directories to process.
 # The xargs grep filters out Cygnus configure.in files.
-find . -name configure.ac -o -name configure.in -print |
+find . '(' -name configure.ac -o -name configure.in ')' -print |
 xargs grep -l AC_INIT |
 sed 's,/configure\.ac$,,;s,/configure\.in$,,;s,^./,,' |
 while read dir; do
@@ -312,10 +312,10 @@ while read dir; do
 
   # uses_aclocal -- is this package using aclocal?
   uses_aclocal=false
-  if grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 ||
-     test -f "$localdir/acinclude.m4"; then
+  grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 &&
+     uses_aclocal=:
+  test -f "$localdir/aclocal.m4" ||
      uses_aclocal=:
-  fi
   if $uses_aclocal &&
      { $force ||
        $update $localdir/aclocal.m4 $localdir/acinclude.m4; } then
index 6ecabf7566f7c6b371eb3374c2952f8da96c330a..6b285a313b451d942b3cfa625b86054f85292630 100644 (file)
@@ -298,7 +298,7 @@ update="@SHELL@ $tmp/update.sh"
 
 # Make a list of directories to process.
 # The xargs grep filters out Cygnus configure.in files.
-find . -name configure.ac -o -name configure.in -print |
+find . '(' -name configure.ac -o -name configure.in ')' -print |
 xargs grep -l AC_INIT |
 sed 's,/configure\.ac$,,;s,/configure\.in$,,;s,^./,,' |
 while read dir; do
@@ -312,10 +312,10 @@ while read dir; do
 
   # uses_aclocal -- is this package using aclocal?
   uses_aclocal=false
-  if grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 ||
-     test -f "$localdir/acinclude.m4"; then
+  grep 'generated .* by aclocal' $localdir/aclocal.m4 >/dev/null 2>&1 &&
+     uses_aclocal=:
+  test -f "$localdir/aclocal.m4" ||
      uses_aclocal=:
-  fi
   if $uses_aclocal &&
      { $force ||
        $update $localdir/aclocal.m4 $localdir/acinclude.m4; } then