From e6431ec56fd7d0ee998d82d7fb72b1f3dc792e3d Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Fri, 2 Jul 1993 05:12:45 +0000 Subject: [PATCH] (install-headers-tar): Ignore exit status of the first tar command. From-SVN: r4831 --- gcc/Makefile.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/Makefile.in b/gcc/Makefile.in index d1ce8b02ffb..10da34ae3c2 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -1687,7 +1687,11 @@ install-include-dir: install-dir # Install the include directory using tar. install-headers-tar: stmp-headers install-include-dir - cd include; tar cf - . | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - ) + cd include; \ + (tar cf - .; exit 0) | (cd $(libsubdir)/include; tar $(TAROUTOPTS) - ) +# /bin/sh on some systems returns the status of the first tar, +# and that can lose with GNU tar which always writes a full block. +# So use `exit 0' to ignore its exit status. # Install the include directory using cpio. install-headers-cpio: stmp-headers install-include-dir -- 2.30.2