]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Force various files to be skipped when generating git archives 15078/head
authorEli Schwartz <eschwartz@gentoo.org>
Thu, 23 Jan 2025 05:52:31 +0000 (00:52 -0500)
committerEli Schwartz <eschwartz@gentoo.org>
Thu, 23 Jan 2025 05:52:31 +0000 (00:52 -0500)
Meson utilizes `git archive` as the first step in producing a release
tarball. Certain files don't need to be distributed in release tarballs
at all -- namely, files used by git itself, or by github when processing
a git repository for e.g. CI purposes. They have no use case outside of
a git repo -- not even as documentation.

Exclude these files from the tarball. This affects both `meson dist` and
the github autogenerated tarballs on the Tags page. More work is needed
to have `meson dist` reach parity with automake's `make distcheck`, but
this is a start.

.gitattributes

index 367d91c24ddf204dd9a9b4967447309431f86638..e7cf8a0c1cd141ac9fe5c1ce88a03a1d4bd946a8 100644 (file)
@@ -1,2 +1,10 @@
 # https://github.com/github/linguist/blob/master/docs/overrides.md
 */zones/* linguist-language=DNS-Zone
+
+# not needed in `git archive` tarballs, only in raw git clones
+.gitattributes export-ignore
+.gitmodules export-ignore
+.gitignore export-ignore
+
+.github export-ignore
+.circleci export-ignore