diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-11 10:23:01 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-11 10:23:01 +0100 |
commit | 75381d836acd1f8e971aa1588c2ae1f09a9885f1 (patch) | |
tree | 8eecc358934d082371035b8334dda04c70616a6c | |
parent | 994ad140490ebba68ba2cc207100209e5a058058 (diff) | |
download | wolfbones-75381d836acd1f8e971aa1588c2ae1f09a9885f1.tar.gz wolfbones-75381d836acd1f8e971aa1588c2ae1f09a9885f1.tar.bz2 |
added a switch for Linux/NetBSD for gettext test
-rw-r--r-- | tests/gettext/GNUmakefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/gettext/GNUmakefile b/tests/gettext/GNUmakefile index a8de421..bb04e56 100644 --- a/tests/gettext/GNUmakefile +++ b/tests/gettext/GNUmakefile @@ -51,6 +51,14 @@ test_gettext_de_CH.po: test_gettext.pot # test_gettext.c:81: warning: format not a string literal, argument types not checked test_gettext.o : test_gettext.c $(CC) -c -g -o $@ $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) $< + +# LANG setting differs: +# - de: NetBSD 4.0, gettext 0.14.4 +ifeq "$(PLATFORM)" "NETBSD" +TEST_LANG = de +else +TEST_LANG = de_CH +endif local_test: test_gettext_de.mo test_gettext_de_CH.mo @echo "Testing gettext.." @@ -58,8 +66,7 @@ local_test: test_gettext_de.mo test_gettext_de_CH.mo @mkdir -p locale/de/LC_MESSAGES @cp test_gettext_de.mo locale/de_CH/LC_MESSAGES/test_gettext.mo @cp test_gettext_de.mo locale/de/LC_MESSAGES/test_gettext.mo - @LANG=de_CH ./test_gettext >/dev/null 2>&1 -# @LANG=de ./test_gettext >/dev/null 2>&1 (NetBSD 4.0, gettext 0.14.4) + @LANG=$(TEST_LANG) ./test_gettext >/dev/null 2>&1 local_all: |