Message ID | 20220704064254.18187-4-thuth@redhat.com |
---|---|
State | Handled Elsewhere |
Headers | show |
Series | scripts/make-release: Decrease the size of the release tarballs | expand |
On Mon, 4 Jul 2022 at 07:50, Thomas Huth <thuth@redhat.com> wrote: > > These files are of no use in a normal tarball and thus should not > be included here. > > Signed-off-by: Thomas Huth <thuth@redhat.com> > --- > scripts/make-release | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/scripts/make-release b/scripts/make-release > index 176304f30b..61c0fd0bfb 100755 > --- a/scripts/make-release > +++ b/scripts/make-release > @@ -61,6 +61,8 @@ https://github.com/open-power/skiboot/archive/${skibootrev}.tar.gz > EOF > cd ../.. > > +rm .*.yml > popd > -tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination} > + > +tar --exclude=".git*" -cjf ${destination}.tar.bz2 ${destination} If the excludes become more elaborate in the future we can use tar --exclude-from=FILE and keep a separate file with all the patterns instead of using both rm and --exclude= patterns. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
diff --git a/scripts/make-release b/scripts/make-release index 176304f30b..61c0fd0bfb 100755 --- a/scripts/make-release +++ b/scripts/make-release @@ -61,6 +61,8 @@ https://github.com/open-power/skiboot/archive/${skibootrev}.tar.gz EOF cd ../.. +rm .*.yml popd -tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination} + +tar --exclude=".git*" -cjf ${destination}.tar.bz2 ${destination} rm -rf ${destination}
These files are of no use in a normal tarball and thus should not be included here. Signed-off-by: Thomas Huth <thuth@redhat.com> --- scripts/make-release | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)