From: "Robin H. Johnson" <robbat2@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/netifrc:master commit in: /, mk/
Date: Wed, 5 Mar 2014 18:40:01 +0000 (UTC) [thread overview]
Message-ID: <1393959640.4f9dd2ad7875debf5da68e46e75257e9f0870fed.robbat2@OpenRC> (raw)
commit: 4f9dd2ad7875debf5da68e46e75257e9f0870fed
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 4 19:00:40 2014 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Mar 4 19:00:40 2014 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/netifrc.git;a=commit;h=4f9dd2ad
packaging: better dist rule
Improve distfile generation to include a changelog, which is not
possible with git-archive
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
.gitignore | 1 +
mk/dist.mk | 11 ++++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..56631ab
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+ChangeLog
diff --git a/mk/dist.mk b/mk/dist.mk
index 82fb8cb..383826a 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -14,9 +14,18 @@ SNAP= ${_SNAP}
SNAPDIR= ${DISTPREFIX}-${SNAP}
SNAPFILE= ${SNAPDIR}.tar.bz2
-dist:
+gitdist:
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}
+dist:
+ sh -c ' \
+ D=$$(mktemp -d) && \
+ mkdir $${D}/${DISTPREFIX} && \
+ git checkout-index -f -a --prefix=$${D}/${DISTPREFIX}/ && \
+ git log >$${D}/${DISTPREFIX}/ChangeLog && \
+ tar cjf ${DISTFILE} --owner=0 --group=0 --format=posix --mode=a+rX -C $$D ${DISTPREFIX} && \
+ rm -rf $$D '
+
distcheck: dist
rm -rf ${DISTPREFIX}
tar xf ${DISTFILE}
reply other threads:[~2014-03-05 18:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1393959640.4f9dd2ad7875debf5da68e46e75257e9f0870fed.robbat2@OpenRC \
--to=robbat2@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