From ca464fb2ae826362ae9477793dbf768f34fe4e48 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 16 Jun 2014 17:42:25 +0900 Subject: [PATCH] tests: Test "make dist" in autopoint test * autopoint-3: Run "make dist" after "make"; add a workaround for a bug in 0.19 and 0.19.1, where intl/ChangeLog is required but missing in the archive. --- gettext-tools/tests/ChangeLog | 7 +++++++ gettext-tools/tests/autopoint-3 | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 237d18b0b..d78b27880 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,10 @@ +2014-06-16 Daiki Ueno + + tests: Test "make dist" in autopoint test + * autopoint-3: Run "make dist" after "make"; add a workaround for + a bug in 0.19 and 0.19.1, where intl/ChangeLog is required but + missing in the archive. + 2014-06-10 Daiki Ueno * gettext 0.19.1 released. diff --git a/gettext-tools/tests/autopoint-3 b/gettext-tools/tests/autopoint-3 index a026105b4..9b519128d 100755 --- a/gettext-tools/tests/autopoint-3 +++ b/gettext-tools/tests/autopoint-3 @@ -120,6 +120,14 @@ ${CONFIG_SHELL} ./configure --with-included-gettext >/dev/null 2>/dev/null \ # intl/plural.c in that case. test -f intl/plural.c && touch intl/plural.c +# Workaround for a bug in 0.19 and 0.19.1: ChangeLog is missing in the archive. +case "$required_gettext_version" in + 0.19 | 0.19.1) + test -f intl/ChangeLog || : > intl/ChangeLog + ;; +esac + ${MAKE} >/dev/null 2>/dev/null || exit 1 +${MAKE} dist >/dev/null 2>/dev/null || exit 1 exit 0 -- 2.47.3