From d7d2552ad0452222c913f6412f22942a2c7d69ad Mon Sep 17 00:00:00 2001
From: rtoy <rtoy>
Date: Thu, 5 May 2005 17:06:31 +0000
Subject: [PATCH] When cd'ing, make sure any output is discarded.  This was
 causing Linux tarballs to be invalid because cd was outputting the new
 directory to stdout causing invalid tar files.  This happens because /bin/sh
 on Linux is oftentimes /bin/bash.

---
 tools/make-extra-dist.sh | 4 ++--
 tools/make-main-dist.sh  | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/make-extra-dist.sh b/tools/make-extra-dist.sh
index 3293886f6..1523346c2 100755
--- a/tools/make-extra-dist.sh
+++ b/tools/make-extra-dist.sh
@@ -76,12 +76,12 @@ sync ; sleep 1 ; sync ; sleep 1 ; sync
 echo Tarring extra components
 if [ -n "$ENABLE_GZIP" ]; then
     echo "  Compressing with gzip"
-    ( cd $DESTDIR ; tar cf - lib ) | \
+    ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
 	gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
 fi
 if [ -n "$ENABLE_BZIP" ]; then
     echo "  Compressing with bzip"
-    ( cd $DESTDIR ; tar cf - lib ) | \
+    ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
 	bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
 fi
 
diff --git a/tools/make-main-dist.sh b/tools/make-main-dist.sh
index acad2b7a1..367c63b4e 100755
--- a/tools/make-main-dist.sh
+++ b/tools/make-main-dist.sh
@@ -91,12 +91,12 @@ sync ; sleep 1 ; sync ; sleep 1 ; sync
 echo Tarring main components
 if [ -n "$ENABLE_GZIP" ]; then
     echo "  Compressing with gzip"
-    ( cd $DESTDIR ; tar cf - bin doc lib man ) | \
+    ( cd $DESTDIR >/dev/null ; tar cf - bin doc lib man ) | \
 	gzip -c > cmucl-$VERSION-$ARCH-$OS.tar.gz
 fi
 if [ -n "$ENABLE_BZIP" ]; then
     echo "  Compressing with bzip"
-    ( cd $DESTDIR ; tar cf - bin doc lib man ) | \
+    ( cd $DESTDIR >/dev/null ; tar cf - bin doc lib man ) | \
 	bzip2 > cmucl-$VERSION-$ARCH-$OS.tar.bz2
 fi
 
-- 
GitLab