From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76E48138334 for ; Mon, 11 Mar 2019 05:02:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9792EE0BFA; Mon, 11 Mar 2019 05:02:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 69712E0BFA for ; Mon, 11 Mar 2019 05:02:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1ED0D335D26 for ; Mon, 11 Mar 2019 05:02:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA83C565 for ; Mon, 11 Mar 2019 05:02:44 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1552187931.4a507f5d088260c117fc3836ecc66e468af4849b.whissi@gentoo> Subject: [gentoo-commits] proj/eselect-rust:master commit in: / X-VCS-Repository: proj/eselect-rust X-VCS-Files: Makefile.am X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 4a507f5d088260c117fc3836ecc66e468af4849b X-VCS-Branch: master Date: Mon, 11 Mar 2019 05:02:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 71b2d56b-7c42-4dc5-b848-a166b70e1454 X-Archives-Hash: 2177386f7591851d33d9e14001a94ebf commit: 4a507f5d088260c117fc3836ecc66e468af4849b Author: Thomas Deutschmann gentoo org> AuthorDate: Sun Mar 10 03:18:51 2019 +0000 Commit: Thomas Deutschmann gentoo 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 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