summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2017-01-31 21:55:22 -0800
committerPádraig Brady <P@draigBrady.com>2017-02-08 14:39:48 -0800
commit2c64bc87293bd8bf369b8dbd487a793ea9803775 (patch)
treebb0e23cc7e5cb5cbe3f6e45f6031eabaa2f1e5e2 /Makefile.am
parentc0a79542fb5c2c22cf0a250db94af6f8581ca342 (diff)
downloadcoreutils-2c64bc87293bd8bf369b8dbd487a793ea9803775.tar.xz
doc: only distribute 5 years of ChangeLogs
Remove old log files that have corresponding entries in the source code repository. This saves about 2.5MB uncompressed, 0.5M compressed. * Makefile.am (gen-ChangeLog): Adjust to taking all logs since a particular version (8.15 in this case). Also mention in the truncated log where to get older entries. (changelog_etc): Remove the no longer distributed files. * build-aux/git-log-fix: Remove now unused entries. * ChangeLog-200[5-8]: Delete. * doc/ChangeLog-2007: Likewise. * po/ChangeLog-2007: Likewise. * old/*: Likewise.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am26
1 files changed, 7 insertions, 19 deletions
diff --git a/Makefile.am b/Makefile.am
index d28afe9f2..68f537cef 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,23 +20,9 @@ ALL_RECURSIVE_TARGETS =
SUBDIRS = po . gnulib-tests
changelog_etc = \
- ChangeLog-2005 \
- ChangeLog-2006 \
- ChangeLog-2007 \
- ChangeLog-2008 \
build-aux/ChangeLog-2007 \
- doc/ChangeLog-2007 \
lib/ChangeLog-2007 \
- m4/ChangeLog-2007 \
- old/fileutils/ChangeLog \
- old/fileutils/ChangeLog-1997 \
- old/fileutils/NEWS \
- old/sh-utils/ChangeLog \
- old/sh-utils/ChangeLog.0 \
- old/sh-utils/NEWS \
- old/textutils/ChangeLog \
- old/textutils/NEWS \
- po/ChangeLog-2007
+ m4/ChangeLog-2007
EXTRA_DIST = \
$(changelog_etc) \
@@ -110,7 +96,7 @@ dist-hook: gen-ChangeLog
$(AM_V_GEN)date +%s > $(distdir)/.timestamp
$(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/Makefile.in
-gen_start_date = 2008-02-08
+gen_start_ver = 8.15
.PHONY: gen-ChangeLog
gen-ChangeLog:
$(AM_V_GEN)if test -d .git; then \
@@ -118,9 +104,11 @@ gen-ChangeLog:
test -e "$$log_fix" \
&& amend_git_log="--amend=$$log_fix" \
|| amend_git_log=; \
- $(top_srcdir)/build-aux/gitlog-to-changelog \
- $$amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t && \
- { rm -f $(distdir)/ChangeLog && \
+ $(top_srcdir)/build-aux/gitlog-to-changelog $$amend_git_log \
+ -- v$(gen_start_ver)~.. > $(distdir)/cl-t && \
+ { printf '\n\nSee the source repo for older entries\n' \
+ >> $(distdir)/cl-t && \
+ rm -f $(distdir)/ChangeLog && \
mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
fi