]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
tests: Add work around for newer Bison version used in autopoint test
authorDaiki Ueno <ueno@gnu.org>
Tue, 29 Apr 2014 09:18:38 +0000 (18:18 +0900)
committerDaiki Ueno <ueno@gnu.org>
Tue, 29 Apr 2014 09:24:28 +0000 (18:24 +0900)
* autopoint-3 (gettext_datadir): Don't regenerate intl/plural.c.

gettext-tools/tests/ChangeLog
gettext-tools/tests/autopoint-3

index 527eba536c8592b4bb34bcfa89981ddb6a5a7978..f641273eaa0d8c2d6d34b6e039ce04e44fdef241 100644 (file)
@@ -1,3 +1,7 @@
+2014-04-29  Daiki Ueno  <ueno@gnu.org>
+
+       * autopoint-3 (gettext_datadir): Don't regenerate intl/plural.c.
+
 2014-04-21  Daiki Ueno  <ueno@gnu.org>
 
        tests: Don't run system dependent test by default
index 8ea619be8848626c6bdced4d860267d1ddd1a3d7..c3f1261d7864fdddada39522b1561bd2cacaf050 100755 (executable)
@@ -115,6 +115,11 @@ ${AUTOMAKE} -a -c >/dev/null 2>/dev/null || exit 1
 ${CONFIG_SHELL} ./configure --with-included-gettext >/dev/null 2>/dev/null \
     || exit 1
 
+# Workaround for 0.18.3 or earlier: Processing intl/plural.y with
+# Bison 3.0.1 or later generates a wrong code.  Use pre-generated
+# intl/plural.c in that case.
+test -f intl/plural.c && touch intl/plural.c
+
 ${MAKE} >/dev/null 2>/dev/null || exit 1
 
 exit 0