]> sourceware.org Git - automake.git/commitdiff
* automake.in (initialize_global_constants): If unreadable by
authorTom Tromey <tromey@redhat.com>
Fri, 10 Dec 1999 07:49:32 +0000 (07:49 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 10 Dec 1999 07:49:32 +0000 (07:49 +0000)
owner, make it readable by owner regardless of number of links.
Fixes more of install2.test.

* missing: Try to see if gnutar or gtar exist before invoking
them.

* m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from
install_sh value.  Look for install-sh and install.sh in a
somewhat more sensible way.  Fixes test install2.test.  Partially
from Jim Meyering.

ChangeLog
automake.in
lib/missing
m4/missing.m4
missing

index ca86795df1f6392b31d4579d66b1b3d6a0dcf869..fcc09d677094c57f95dcdbeed54945bd2627ab9a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+1999-12-10  Tom Tromey  <tromey@cygnus.com>
+
+       * automake.in (initialize_global_constants): If unreadable by
+       owner, make it readable by owner regardless of number of links.
+       Fixes more of install2.test.
+
+       * missing: Try to see if gnutar or gtar exist before invoking
+       them.
+
+       * m4/missing.m4 (AM_MISSING_INSTALL_SH): Remove ${SHELL} from
+       install_sh value.  Look for install-sh and install.sh in a
+       somewhat more sensible way.  Fixes test install2.test.  Partially
+       from Jim Meyering.
+
 1999-12-09  Pavel Roskin  <pavel_roskin@geocities.com>
 
        * m4/missing.m4: remove redundant backquote
index 8136ba8dcb0b7118bcc1abef7f3ba3e2f6110334..934cb49d592345c5ef2b7bdae7878bc93e97f08a 100755 (executable)
@@ -6606,8 +6606,12 @@ sub initialize_global_constants
     # extract them.
     # Ignore return result from chmod, because it might give an error
     # if we chmod a symlink.
+    # Another nastiness: if the file is unreadable by us, we make it
+    # readable regardless of the number of links to it.  This only
+    # happens in perverse cases.
     $dist_header = '   -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \\
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \\
+         ! -type d ! -perm -400 -exec chmod a+r {} \; -o \\
          ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \\
        || chmod -R a+r $(distdir)
 ';
index b965c144466c0e97abf7c37b60e37c4928c55667..c60e9d772f4b24b4e22b0a8a26a359a5e858e433 100755 (executable)
@@ -197,9 +197,15 @@ WARNING: \`$1' is missing on your system.  You should only need it if
       exit 1
     fi
 
-    # we have already tried tar in the generic part
-    gnutar ${1+"$@"} && exit 0
-    gtar ${1+"$@"} && exit 0
+    # We have already tried tar in the generic part.
+    # Look for gnutar/gtar before invocation to avoid ugly error
+    # messages.
+    if (gnutar --version > /dev/null 2>&1); then
+       gnutar ${1+"$@"} && exit 0
+    fi
+    if (gtar --version > /dev/null 2>&1); then
+       gtar ${1+"$@"} && exit 0
+    fi
     firstarg="$1"
     if shift; then
        case "$firstarg" in
index 5daa79448d8f27b517e3a13392834388d3c1951d..02cfc8abc7722a03a9692f2ecd97aef479291958 100644 (file)
@@ -12,8 +12,12 @@ dnl AM_MISSING_INSTALL_SH()
 AC_DEFUN(AM_MISSING_INSTALL_SH, [
 AC_REQUIRE([AM_MISSING_HAS_RUN])
 if test -z "$install_sh"; then
-   install_sh="${am_missing_run}install-sh"
-   test -f "$install_sh" || install_sh="${am_missing_run}install.sh"
+   install_sh="$ac_aux_dir/install-sh"
+   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
+   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
+   dnl FIXME: an evil hack: we remove the SHELL invocation from
+   dnl install_sh because automake adds it back in.  Sigh.
+   install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
 fi
 AC_SUBST(install_sh)])
 
diff --git a/missing b/missing
index b965c144466c0e97abf7c37b60e37c4928c55667..c60e9d772f4b24b4e22b0a8a26a359a5e858e433 100755 (executable)
--- a/missing
+++ b/missing
@@ -197,9 +197,15 @@ WARNING: \`$1' is missing on your system.  You should only need it if
       exit 1
     fi
 
-    # we have already tried tar in the generic part
-    gnutar ${1+"$@"} && exit 0
-    gtar ${1+"$@"} && exit 0
+    # We have already tried tar in the generic part.
+    # Look for gnutar/gtar before invocation to avoid ugly error
+    # messages.
+    if (gnutar --version > /dev/null 2>&1); then
+       gnutar ${1+"$@"} && exit 0
+    fi
+    if (gtar --version > /dev/null 2>&1); then
+       gtar ${1+"$@"} && exit 0
+    fi
     firstarg="$1"
     if shift; then
        case "$firstarg" in
This page took 0.043423 seconds and 5 git commands to generate.