From: Daiki Ueno Date: Mon, 16 Jun 2014 08:42:25 +0000 (+0900) Subject: tests: Test "make dist" in autopoint test X-Git-Tag: v0.19.2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca464fb2ae826362ae9477793dbf768f34fe4e48;p=thirdparty%2Fgettext.git 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. --- 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