From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1242666-garchives=archives.gentoo.org@lists.gentoo.org> 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 5D7681382C5 for <garchives@archives.gentoo.org>; Mon, 18 Jan 2021 12:17:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1816E086F; Mon, 18 Jan 2021 12:17:05 +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 97F33E086F for <gentoo-commits@lists.gentoo.org>; Mon, 18 Jan 2021 12:17:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 70EDD340BCD for <gentoo-commits@lists.gentoo.org>; Mon, 18 Jan 2021 12:17:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0FD803A6 for <gentoo-commits@lists.gentoo.org>; Mon, 18 Jan 2021 12:17:03 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org> Message-ID: <1610972073.e58b9a9894bb6fd551a43e9d71c838fa8bbf6c0e.ulm@gentoo> Subject: [gentoo-commits] proj/devmanual:master commit in: / X-VCS-Repository: proj/devmanual X-VCS-Files: Makefile X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: e58b9a9894bb6fd551a43e9d71c838fa8bbf6c0e X-VCS-Branch: master Date: Mon, 18 Jan 2021 12:17:03 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 54a2d73a-dace-4056-86f0-529c902a92ca X-Archives-Hash: a22c962dbde5498f0cc3ca843252f086 commit: e58b9a9894bb6fd551a43e9d71c838fa8bbf6c0e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Mon Jan 18 12:14:33 2021 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Mon Jan 18 12:14:33 2021 +0000 URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=e58b9a98 Makefile: Add dist target Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 13f2bb9..e516e15 100644 --- a/Makefile +++ b/Makefile @@ -91,9 +91,16 @@ tidy: $(HTMLS) $(ECLASS_HTMLS) test $${status} -eq 0 && echo "tidy validation successful"; \ exit $${status} +dist: + COMMITDATE=$$(TZ=UTC git log -1 --pretty="format:%cd" \ + --date="format-local:%Y%m%d"); \ + TARBALL="devmanual-0_pre$${COMMITDATE}.tar.xz"; \ + echo "Creating tarball: $${TARBALL}"; \ + git archive --format=tar --prefix=devmanual/ HEAD | xz > $${TARBALL} + clean: @rm -f $(HTMLS) $(IMAGES) documents.js .depend -.PHONY: all prereq build install validate tidy clean +.PHONY: all prereq build install validate tidy dist clean -include .depend