Skip to content

Commit

Permalink
build: omit subproject .git directories from dist tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAnno committed May 13, 2023
1 parent d7d373d commit 9c01cbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dist-filter.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

for f in "${MESON_DIST_ROOT}"/subprojects/*/; do
rm -rf "$f/.git/"
done
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ deps += [
libm,
]

meson.add_dist_script('.dist-filter.sh')

subdir('include')
subdir('src')

Expand Down

0 comments on commit 9c01cbe

Please sign in to comment.