All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petr Lautrbach <plautrba@redhat.com>
To: selinux@vger.kernel.org
Cc: Hu Keping <hukeping@huawei.com>
Subject: [PATCH 3/3] Simplify the tarball generating scripts
Date: Fri, 27 Nov 2020 09:52:21 +0100	[thread overview]
Message-ID: <20201127085220.813760-4-plautrba@redhat.com> (raw)
In-Reply-To: <20201127085220.813760-1-plautrba@redhat.com>

From: Hu Keping <hukeping@huawei.com>

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 <hukeping@huawei.com>
---
 scripts/release | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/release b/scripts/release
index 040aaf68e86a..895a0e1ca1a1 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
 
-- 
2.29.2


  parent reply	other threads:[~2020-11-27  8:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-27  8:52 https://github.com/SELinuxProject/selinux/pull/271 Petr Lautrbach
2020-11-27  8:52 ` [PATCH 1/3] Introduce VERSION file for selinux Petr Lautrbach
2020-11-27  8:52 ` [PATCH 2/3] Use X.Y instead of date for release tag Petr Lautrbach
2020-11-27  8:52 ` Petr Lautrbach [this message]
2020-11-27  9:36 ` https://github.com/SELinuxProject/selinux/pull/271 Petr Lautrbach
2020-12-02 17:34   ` https://github.com/SELinuxProject/selinux/pull/271 Petr Lautrbach

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201127085220.813760-4-plautrba@redhat.com \
    --to=plautrba@redhat.com \
    --cc=hukeping@huawei.com \
    --cc=selinux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.