Skip to content

Commit 9c01cbe

Browse files
committed
build: omit subproject .git directories from dist tarball
1 parent d7d373d commit 9c01cbe

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.dist-filter.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
3+
for f in "${MESON_DIST_ROOT}"/subprojects/*/; do
4+
rm -rf "$f/.git/"
5+
done

meson.build

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ deps += [
256256
libm,
257257
]
258258

259+
meson.add_dist_script('.dist-filter.sh')
260+
259261
subdir('include')
260262
subdir('src')
261263

0 commit comments

Comments
 (0)