Module: check_mk
Branch: master
Commit: 9f83a65869d995d1b895b99fbf18814dc41d3c8d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9f83a65869d995…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 28 08:31:56 2017 +0200
make dist target compatible with older distros
Change-Id: I77955cc2a209f528affcd569a62dbe373e25a56a
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 002ec10..4f90c08 100644
--- a/Makefile
+++ b/Makefile
@@ -188,6 +188,7 @@ check-version:
# Would use --exclude-vcs-ignores but that's available from tar 1.29 which
# is currently not used by most distros
+# Would also use --exclude-vcs, but this is also not available
dist: mk-livestatus-$(VERSION).tar.gz
@EXCLUDES= ; \
if [ -d .git ]; then \
@@ -197,7 +198,10 @@ dist: mk-livestatus-$(VERSION).tar.gz
done ; \
fi ; \
tar -cz --wildcards -f $(DIST_ARCHIVE) \
- --exclude-vcs \
+ --exclude .git \
+ --exclude .gitignore \
+ --exclude .gitmodules \
+ --exclude .gitattributes \
--exclude $(DIST_ARCHIVE) \
$$EXCLUDES \
--transform 's|^|check-mk-$(EDITION)-$(OMD_VERSION)/|gS' \