Message ID | 20221128092555.37102-4-thuth@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | scripts/make-release: Decrease size of the release tarballs | expand |
Thomas Huth <thuth@redhat.com> writes: > 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 | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/scripts/make-release b/scripts/make-release > index 44a9d86a04..febeb6cb36 100755 > --- a/scripts/make-release > +++ b/scripts/make-release > @@ -41,6 +41,9 @@ git submodule update --init --single-branch > BaseTools/Source/C/BrotliCompress/brotli \ > CryptoPkg/Library/OpensslLib/openssl \ > MdeModulePkg/Library/BrotliCustomDecompressLib/brotli) > + > +rm -v .*.yml Why remove them instead of excluding them like you do for .git* bellow. > popd > -tar --exclude=.git -cjf ${destination}.tar.bz2 ${destination} > + > +tar --exclude=".git*" -cjf ${destination}.tar.bz2 ${destination} In fact you could probably instead use a file (release.exclude?) and put all those patterns in there? > rm -rf ${destination}
diff --git a/scripts/make-release b/scripts/make-release index 44a9d86a04..febeb6cb36 100755 --- a/scripts/make-release +++ b/scripts/make-release @@ -41,6 +41,9 @@ git submodule update --init --single-branch BaseTools/Source/C/BrotliCompress/brotli \ CryptoPkg/Library/OpensslLib/openssl \ MdeModulePkg/Library/BrotliCustomDecompressLib/brotli) + +rm -v .*.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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)