Skip to content
Snippets Groups Projects
Commit d7d2552a authored by rtoy's avatar rtoy
Browse files

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.
parent 28a0069e
No related branches found
No related tags found
No related merge requests found
...@@ -76,12 +76,12 @@ sync ; sleep 1 ; sync ; sleep 1 ; sync ...@@ -76,12 +76,12 @@ sync ; sleep 1 ; sync ; sleep 1 ; sync
echo Tarring extra components echo Tarring extra components
if [ -n "$ENABLE_GZIP" ]; then if [ -n "$ENABLE_GZIP" ]; then
echo " Compressing with gzip" 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 gzip -c > cmucl-$VERSION-$ARCH-$OS.extra.tar.gz
fi fi
if [ -n "$ENABLE_BZIP" ]; then if [ -n "$ENABLE_BZIP" ]; then
echo " Compressing with bzip" echo " Compressing with bzip"
( cd $DESTDIR ; tar cf - lib ) | \ ( cd $DESTDIR >/dev/null ; tar cf - lib ) | \
bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2 bzip2 > cmucl-$VERSION-$ARCH-$OS.extra.tar.bz2
fi fi
......
...@@ -91,12 +91,12 @@ sync ; sleep 1 ; sync ; sleep 1 ; sync ...@@ -91,12 +91,12 @@ sync ; sleep 1 ; sync ; sleep 1 ; sync
echo Tarring main components echo Tarring main components
if [ -n "$ENABLE_GZIP" ]; then if [ -n "$ENABLE_GZIP" ]; then
echo " Compressing with gzip" 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 gzip -c > cmucl-$VERSION-$ARCH-$OS.tar.gz
fi fi
if [ -n "$ENABLE_BZIP" ]; then if [ -n "$ENABLE_BZIP" ]; then
echo " Compressing with bzip" 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 bzip2 > cmucl-$VERSION-$ARCH-$OS.tar.bz2
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment