]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
build: Generate ChangeLogs for intl and po
authorDaiki Ueno <ueno@gnu.org>
Thu, 15 Oct 2015 01:18:03 +0000 (10:18 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 15 Oct 2015 03:37:53 +0000 (12:37 +0900)
* 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.

Makefile.am
autogen.sh
gettext-runtime/intl/ChangeLog.0 [moved from gettext-runtime/intl/ChangeLog with 100% similarity]
gettext-runtime/po/ChangeLog.0 [moved from gettext-runtime/po/ChangeLog with 100% similarity]
gettext-tools/po/ChangeLog.1 [moved from gettext-tools/po/ChangeLog with 100% similarity]

index fb0598c4601ec569ba69fef5082186f3b6c573ac..d95383bbb3029c1cee59f91f6e6b7c28d4528133 100644 (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.
index ca0468af5578ffb313bbfd5e82a4ab064ed1ff3e..3a301e4611ea597811a12691cfdce3abeec48ed9 100755 (executable)
@@ -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