From f5f63035fab4879d1872764294df801a7896e238 Mon Sep 17 00:00:00 2001 From: Hu Keping Date: Fri, 27 Nov 2020 09:52:21 +0100 Subject: [PATCH] Simplify the tarball generating scripts Since the format of git archive is inferred from the output file, it's safe to remove the pipe for gzip. Signed-off-by: Hu Keping --- scripts/release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release b/scripts/release index 040aaf68..895a0e1c 100755 --- a/scripts/release +++ b/scripts/release @@ -22,7 +22,7 @@ for i in $DIRS; do VERS=`cat VERSION` ARCHIVE=$i-$VERS.tar.gz git tag $i-$VERS > /dev/null 2>&1 - git archive --format=tar --prefix=$i-$VERS/ $i-$VERS | gzip > ../$DEST/$ARCHIVE + git archive -o ../$DEST/$ARCHIVE --prefix=$i-$VERS/ $i-$VERS cd .. done @@ -31,7 +31,7 @@ for i in $DIRS_NEED_PREFIX; do VERS=`cat VERSION` ARCHIVE=selinux-$i-$VERS.tar.gz git tag selinux-$i-$VERS > /dev/null 2>&1 - git archive --format=tar --prefix=selinux-$i-$VERS/ selinux-$i-$VERS | gzip > ../$DEST/$ARCHIVE + git archive -o ../$DEST/$ARCHIVE --prefix=selinux-$i-$VERS/ selinux-$i-$VERS cd .. done