Skip to content

Commit

Permalink
Simplify the tarball generating scripts
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
HuKeping authored and bachradsusi committed Dec 2, 2020
1 parent f63ac24 commit f5f6303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release
Expand Up @@ -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

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

Expand Down

0 comments on commit f5f6303

Please sign in to comment.