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-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
# 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)
';
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
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)])
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