]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
do not assume GNU tar in test
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 Mar 2023 01:05:25 +0000 (18:05 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 30 Mar 2023 01:07:52 +0000 (18:07 -0700)
* t/dist-no-built-sources.sh: Don’t assume
GNU Tar’s ability of decompressing tarballs.
Solaris 10 ‘tar’ doesn’t do that.

t/dist-no-built-sources.sh

index 020359c71e93ecc4ad089e73c8d29c5af1444056..aa9d5f15cbcb7344a87f4e4101830247d92da967 100644 (file)
@@ -58,8 +58,9 @@ EOF
   # In any case, the tarball should contain y.c, but not x.c.
   # The tarball is always named based on $0, regardless of our options.
   pkg_ver=$me-1.0
-  ! tar tf "${pkg_ver}".tar.gz "${pkg_ver}"/x.c
-  tar tf "${pkg_ver}".tar.gz "${pkg_ver}"/y.c
+  gzip -d "${pkg_ver}".tar.gz
+  ! tar tf "${pkg_ver}".tar "${pkg_ver}"/x.c
+  tar tf "${pkg_ver}".tar "${pkg_ver}"/y.c
 
   # And x.c should have been built only for the built-sources version.
   if test "$testopt" = no-built-sources; then