summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 11:22:30 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-16 11:22:30 (EDT)
commit6cbb95b36001754b3cb4063a4cbd9afc906345a2 (patch)
tree866aab9c4014a94cfa6663d0fe87e55d7ab9fbc8
parent45f425dc8ec7140595b7941a18fae42adb2344ec (diff)
Makefile.am: Distribute 3rd-party submodules
-rw-r--r--Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 9fff865..ee7d7a2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -154,13 +154,28 @@ really-clean: distclean
$(srcdir)/ChangeLog
dist-hook:
+ set -e; \
if [ -d '$(srcdir)/.git' ]; then \
printf 'Generated file. Do not edit.\n\n' \
>'$(distdir)/ChangeLog~'; \
GIT_DIR='$(srcdir)/.git' git log --stat --color=never \
>>'$(distdir)/ChangeLog~'; \
mv '$(distdir)/ChangeLog~' '$(distdir)/ChangeLog'; \
+ $(MKDIR_P) '$(distdir)/3rdparty/'; \
+ >'$(distdir)/3rdparty/Manifest'; \
+ for d in $(3rdparty_dirs); do \
+ for f in $$(GIT_DIR="$(srcdir)/3rdparty/$${d}/.git" \
+ git ls-files); do \
+ printf '3rdparty/%s/%s\n' "$${d}" "$${f}" \
+ >>'$(distdir)/3rdparty/Manifest'; \
+ done; \
+ done; \
fi
+ set -e; \
+ for f in $$(cat '$(distdir)/3rdparty/Manifest'); do \
+ $(MKDIR_P) "$(distdir)/$$(dirname "$${f}")"; \
+ cp -p "$${f}" "$(distdir)/$${f}"; \
+ done
release:
sed "s/^Released: ????-??-??\$$/Released: $$(date '+%Y-%m-%d')/" \