build: Generate ChangeLogs for intl and po

* autogen.sh: Create empty ChangeLog files under intl and po.
* Makefile.am (gen-ChangeLogs): Rename from gen-ChangeLog.  Generate
ChangeLog files for */intl and */po as well as top-level.
* gettext-runtime/intl/ChangeLog.0: Rename from ChangeLog.
* gettext-runtime/po/ChangeLog.0: Rename from ChangeLog.
* gettext-tools/po/ChangeLog.1: Rename from ChangeLog.
This commit is contained in:
Daiki Ueno
2015-10-15 10:18:03 +09:00
parent 2d98ea8090
commit 767ec35d1f
5 changed files with 16 additions and 12 deletions
+14 -7
View File
@@ -154,23 +154,30 @@ EXTRA_DIST += $(top_srcdir)/.version
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook: gen-ChangeLog
dist-hook: gen-ChangeLogs
echo $(VERSION) > $(distdir)/.tarball-version
# Generate ChangeLog.
gen_start_date = 2015-10-13
.PHONY: gen-ChangeLog
gen-ChangeLog:
.PHONY: gen-ChangeLogs
gen-ChangeLogs:
$(AM_V_GEN)if test -d .git; then \
log_fix="$(srcdir)/build-aux/git-log-fix"; \
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 && \
mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
for d in . gettext-runtime/intl gettext-runtime/po \
gettext-tools/po; do \
test "$$d" = "." \
&& cldir="$(distdir)" \
|| cldir="$(distdir)/$$d"; \
$(top_srcdir)/build-aux/gitlog-to-changelog \
$$amend_git_log --since=$(gen_start_date) -- "$$d" \
> "$$cldir/cl-t" && \
{ rm -f "$$cldir/ChangeLog" && \
mv "$$cldir/cl-t" "$$cldir/ChangeLog"; }; \
done; \
fi
# PO files update.
+2 -5
View File
@@ -417,7 +417,8 @@ fi
# Automake requires that ChangeLog exist.
for dir in . gettext-runtime gettext-runtime/libasprintf \
gettext-tools gettext-tools/examples; do
gettext-tools gettext-tools/examples \
gettext-runtime/intl gettext-runtime/po gettext-tools/po; do
cat > "$dir/ChangeLog" <<\EOF
No more ChangeLog files
========================
@@ -426,10 +427,6 @@ October 14th, 2015 we put changelog information only in the git commit
log, and generate a top-level ChangeLog file from logs at "make dist"
time.
This rule doesn't apply to the ChangeLog files under "intl" and "po"
directories, because those files are distributed as part of gettext
infrastructure files pulled with the autopoint program.
Local Variables:
buffer-read-only: t
mode: text