automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[automake-commit] 01/02: do not assume GNU tar in test


From: Paul Eggert
Subject: [automake-commit] 01/02: do not assume GNU tar in test
Date: Wed, 29 Mar 2023 21:08:02 -0400

eggert pushed a commit to branch master
in repository automake.

View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=844c71e5f6028b93f3571746da4f0f3e106a08d0

commit 844c71e5f6028b93f3571746da4f0f3e106a08d0
Author: Paul Eggert <eggert@cs.ucla.edu>
AuthorDate: Wed Mar 29 18:05:25 2023 -0700

    do not assume GNU tar in test
    
    * 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 | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/t/dist-no-built-sources.sh b/t/dist-no-built-sources.sh
index 020359c71..aa9d5f15c 100644
--- a/t/dist-no-built-sources.sh
+++ b/t/dist-no-built-sources.sh
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]