From: "Thomas Deutschmann" <whissi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/eselect-rust:master commit in: /
Date: Mon, 11 Mar 2019 05:02:44 +0000 (UTC) [thread overview]
Message-ID: <1552187931.4a507f5d088260c117fc3836ecc66e468af4849b.whissi@gentoo> (raw)
commit: 4a507f5d088260c117fc3836ecc66e468af4849b
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 10 03:18:51 2019 +0000
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Mar 10 03:18:51 2019 +0000
URL: https://gitweb.gentoo.org/proj/eselect-rust.git/commit/?id=4a507f5d
Generate & add ChangeLog when creating dist target
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
Makefile.am | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 144bee4..b969189 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,2 +1,20 @@
eselectdir = $(datadir)/eselect/modules
dist_eselect_DATA = rust.eselect
+
+dist-hook: gen-ChangeLog
+
+.PHONY: gen-ChangeLog
+gen-ChangeLog:
+ @if test -d "$(top_srcdir)/.git"; \
+ then \
+ echo "Creating ChangeLog ..." && \
+ ( cd "$(top_srcdir)" && \
+ echo '# Generated by Makefile. Do not edit.'; echo; \
+ git log --no-color --no-decorate ) > ChangeLog.tmp \
+ && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
+ || ( rm -f ChangeLog.tmp ; \
+ echo "Failed to generate ChangeLog" >&2; \
+ exit 1; ); \
+ else \
+ echo "A git clone is required to generate a ChangeLog" >&2; \
+ fi
next reply other threads:[~2019-03-11 5:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-11 5:02 Thomas Deutschmann [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-07-03 7:49 [gentoo-commits] proj/eselect-rust:master commit in: / Georgy Yakovlev
2020-04-19 1:21 Thomas Deutschmann
2020-04-19 1:21 Thomas Deutschmann
2020-04-19 1:21 Thomas Deutschmann
2020-01-01 22:25 Thomas Deutschmann
2020-01-01 22:25 Thomas Deutschmann
2020-01-01 22:05 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
2019-03-11 5:02 Thomas Deutschmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1552187931.4a507f5d088260c117fc3836ecc66e468af4849b.whissi@gentoo \
--to=whissi@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox