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 <hukeping@huawei.com>
This commit is contained in:
Hu Keping 2020-11-27 09:52:21 +01:00 committed by Petr Lautrbach
parent f63ac245f7
commit f5f63035fa
1 changed files with 2 additions and 2 deletions

View File

@ -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