aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2014-12-07 17:16:48 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2014-12-07 17:16:48 -0600
commit3647db7a27f7a5ca14b33b14effeb945fd986210 (patch)
tree301006b58e7f470f1722dd67703c6d70b5cd8488 /mk
parent7a92eb888794819a339babd0ee220b6aa3993db1 (diff)
Add target to create ChangeLog
This was added by request because some users are requesting a ChangeLog. This fixes #29.
Diffstat (limited to 'mk')
-rw-r--r--mk/dist.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/mk/dist.mk b/mk/dist.mk
index 82fb8cb2..6c37dc8f 100644
--- a/mk/dist.mk
+++ b/mk/dist.mk
@@ -8,12 +8,17 @@ DISTFILE?= ${DISTPREFIX}.tar.bz2
CLEANFILES+= ${NAME}-*.tar.bz2
+CHANGELOG_LIMIT?= --after=$(shell date --utc --date="1 year ago" +%Y-%m-%d)
+
_SNAP_SH= date -u +%Y%m%d%H%M
_SNAP:= $(shell ${_SNAP_SH})
SNAP= ${_SNAP}
SNAPDIR= ${DISTPREFIX}-${SNAP}
SNAPFILE= ${SNAPDIR}.tar.bz2
+changelog:
+ git log ${CHANGELOG_LIMIT} --format=medium > ChangeLog
+
dist:
git archive --prefix=${DISTPREFIX}/ ${GITREF} | bzip2 > ${DISTFILE}