]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix some mingw test failures.
authorBruno Haible <bruno@clisp.org>
Sun, 25 Nov 2018 01:10:23 +0000 (02:10 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 25 Nov 2018 01:10:23 +0000 (02:10 +0100)
* gettext-tools/tests/init-env.in (wabs_srcdir, wabs_top_srcdir): New variables.
(GETTEXTDATADIR): On mingw, use native Windows syntax.
* gettext-tools/tests/format-c-3: Use wabs_srcdir instead of abs_srcdir, and
wabs_top_srcdir instead of abs_top_srcdir.
* gettext-tools/tests/format-c-4: Likewise.
* gettext-tools/tests/format-c-5: Likewise.
* gettext-tools/tests/gettextpo-1: Likewise.
* gettext-tools/tests/intl-1: Likewise.
* gettext-tools/tests/intl-2: Likewise.
* gettext-tools/tests/intl-3: Likewise.
* gettext-tools/tests/intl-4: Likewise.
* gettext-tools/tests/intl-setlocale-1: Likewise.
* gettext-tools/tests/intl-setlocale-2: Likewise.
* gettext-tools/tests/intl-thread-1: Likewise.
* gettext-tools/tests/intl-thread-2: Likewise.
* gettext-tools/tests/intl-thread-3: Likewise.
* gettext-tools/tests/msgfmt-qt-1: Likewise.
* gettext-tools/tests/msgfmt-qt-2: Likewise.
* gettext-tools/tests/msginit-3: Likewise.
* gettext-tools/tests/msginit-4: Likewise.
* gettext-tools/tests/msgmerge-compendium-5: Likewise.
* gettext-tools/tests/msgmerge-compendium-6: Likewise.
* gettext-tools/tests/msgunfmt-3: Likewise.
* gettext-tools/tests/msgunfmt-tcl-1: Likewise.
* gettext-tools/tests/msguniq-1: Likewise.
* gettext-tools/tests/msguniq-2: Likewise.
* gettext-tools/tests/msguniq-3: Likewise.
* gettext-tools/tests/msguniq-4: Likewise.
* gettext-tools/tests/plural-1: Likewise.
* gettext-tools/tests/xgettext-1: Likewise.
* gettext-tools/tests/xgettext-c-1: Likewise.
* gettext-tools/tests/xgettext-c-comment-6: Likewise.
* gettext-tools/tests/xgettext-c-escape-3: Likewise.
* gettext-tools/tests/xgettext-vala-2: Likewise.

32 files changed:
gettext-tools/tests/format-c-3
gettext-tools/tests/format-c-4
gettext-tools/tests/format-c-5
gettext-tools/tests/gettextpo-1
gettext-tools/tests/init-env.in
gettext-tools/tests/intl-1
gettext-tools/tests/intl-2
gettext-tools/tests/intl-3
gettext-tools/tests/intl-4
gettext-tools/tests/intl-setlocale-1
gettext-tools/tests/intl-setlocale-2
gettext-tools/tests/intl-thread-1
gettext-tools/tests/intl-thread-2
gettext-tools/tests/intl-thread-3
gettext-tools/tests/msgfmt-qt-1
gettext-tools/tests/msgfmt-qt-2
gettext-tools/tests/msginit-3
gettext-tools/tests/msginit-4
gettext-tools/tests/msgmerge-compendium-5
gettext-tools/tests/msgmerge-compendium-6
gettext-tools/tests/msgunfmt-3
gettext-tools/tests/msgunfmt-tcl-1
gettext-tools/tests/msguniq-1
gettext-tools/tests/msguniq-2
gettext-tools/tests/msguniq-3
gettext-tools/tests/msguniq-4
gettext-tools/tests/plural-1
gettext-tools/tests/xgettext-1
gettext-tools/tests/xgettext-c-1
gettext-tools/tests/xgettext-c-comment-6
gettext-tools/tests/xgettext-c-escape-3
gettext-tools/tests/xgettext-vala-2

index de59476abad29c67c61cb546f1a7a2a785400cea..3fb9c370375cc067c44a9906fb8fa015d5aaf29d 100755 (executable)
@@ -4,7 +4,7 @@
 # Test ISO C 99 <inttypes.h> format string directives.
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o fc3.tmp --omit-header --no-location "$abs_srcdir"/format-c-3-prg.c || Exit 1
+${XGETTEXT} -o fc3.tmp --omit-header --no-location "$wabs_srcdir"/format-c-3-prg.c || Exit 1
 LC_ALL=C tr -d '\r' < fc3.tmp > fc3.pot || Exit 1
 
 cat <<EOF > fc3.ok
index 6f76eb6ae0a94de970431e460039d8ded8fc6349..accd1173c2db72f3d73d3e06c0c4026dd018a20d 100755 (executable)
@@ -4,7 +4,7 @@
 # Test ISO C 99 <inttypes.h> format string directives with plural forms.
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o fc4.tmp --omit-header --no-location "$abs_srcdir"/format-c-4-prg.c || Exit 1
+${XGETTEXT} -o fc4.tmp --omit-header --no-location "$wabs_srcdir"/format-c-4-prg.c || Exit 1
 LC_ALL=C tr -d '\r' < fc4.tmp > fc4.pot || Exit 1
 
 cat <<EOF > fc4.ok
index 1528b17a409a75409ec14a31061f25179eb4242a..b8111eed357969a945f86b7db34011f0f347a519 100755 (executable)
@@ -4,7 +4,7 @@
 # Test 'I' format directive flag.
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o fc5.tmp --omit-header --no-location "$abs_srcdir"/format-c-5-prg.c || Exit 1
+${XGETTEXT} -o fc5.tmp --omit-header --no-location "$wabs_srcdir"/format-c-5-prg.c || Exit 1
 LC_ALL=C tr -d '\r' < fc5.tmp > fc5.pot || Exit 1
 
 cat <<EOF > fc5.ok
index 2ad641ed09e38fac9be4679627e449240fa29012..f95aba0a4836bfbc3cf9f22f1b093c233083615b 100755 (executable)
@@ -2,7 +2,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 # Test the libgettextpo library.
-../gettextpo-1-prg${EXEEXT} "$abs_srcdir"/gettextpo-1.de.po > /dev/null || Exit 1
+../gettextpo-1-prg${EXEEXT} "$wabs_srcdir"/gettextpo-1.de.po > /dev/null || Exit 1
 
 : ${DIFF=diff}
 ${DIFF} "$abs_srcdir"/gettextpo-1.de.po gtpo-1-copied.po || Exit 1
index cddc5f9bd2fa82a8bb796e95b5dd91c99f033b20..9f150bc782e8725fd5a706d56032876d3ad108dd 100644 (file)
@@ -1,10 +1,6 @@
 # Variable needed by LTLIBINTL.
 top_builddir=../..
 
-# Variable needed by xgettext.
-GETTEXTDATADIR="$abs_top_srcdir"
-export GETTEXTDATADIR
-
 OBJEXT="@OBJEXT@"
 EXEEXT="@EXEEXT@"
 CC="@CC@"
@@ -29,6 +25,23 @@ LOCALE_DE_UTF8="@LOCALE_DE_UTF8@"
 host_os="@host_os@"
 ARCHIVE_VERSION="@ARCHIVE_VERSION@"
 
+# For specific filename variables, define a variant that - in mingw builds
+# in a Cygwin environment - has the Windows filename syntax.
+wabs_srcdir="$abs_srcdir"
+wabs_top_srcdir="$abs_top_srcdir"
+case "$host_os" in
+  mingw*)
+    if (cygpath --version) >/dev/null 2>/dev/null; then
+      wabs_srcdir=`cygpath -w "$abs_srcdir"`
+      wabs_top_srcdir=`cygpath -w "$abs_top_srcdir"`
+    fi
+    ;;
+esac
+
+# Variable needed by xgettext.
+GETTEXTDATADIR="$wabs_top_srcdir"
+export GETTEXTDATADIR
+
 : ${GETTEXT=tstgettext}
 : ${NGETTEXT=tstngettext}
 : ${XGETTEXT=xgettext}
index e352a6c899cbff9c9653249a6161c2986c1495bb..76fb75e0e6954c15817f377525860895db88a70a 100755 (executable)
@@ -8,7 +8,7 @@ test -d in-1/fr || mkdir in-1/fr
 test -d in-1/fr/LC_MESSAGES || mkdir in-1/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-1/fr/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-1.po
+${MSGFMT} -o in-1/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-1.po
 
 : ${DIFF=diff}
 cat <<EOF > in-1.ok
index f2cc7ab8f30571a501c87ee2948a1f710165f1ff..a061d57ab1038b5b9c915f21f85bf0e63c15e6f7 100755 (executable)
@@ -8,14 +8,14 @@ test -d in-2-1/fr || mkdir in-2-1/fr
 test -d in-2-1/fr/LC_MESSAGES || mkdir in-2-1/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-2-1/fr/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-2-1.po
+${MSGFMT} -o in-2-1/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-2-1.po
 
 test -d in-2-2 || mkdir in-2-2
 test -d in-2-2/fr || mkdir in-2-2/fr
 test -d in-2-2/fr/LC_MESSAGES || mkdir in-2-2/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-2-2/fr/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-2-2.po
+${MSGFMT} -o in-2-2/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-2-2.po
 
 : ${DIFF=diff}
 cat <<EOF > in-2-1.ok
index d332319660cb1f5bdb24bc51ece204c8cc1f3d45..4879e24ed47d29fe994c6a10062bbd29a8aa267a 100755 (executable)
@@ -8,14 +8,14 @@ test -d in-3-1/fr || mkdir in-3-1/fr
 test -d in-3-1/fr/LC_MESSAGES || mkdir in-3-1/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-3-1/fr/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-2-1.po
+${MSGFMT} -o in-3-1/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-2-1.po
 
 test -d in-3-2 || mkdir in-3-2
 test -d in-3-2/fr || mkdir in-3-2/fr
 test -d in-3-2/fr/LC_MESSAGES || mkdir in-3-2/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-3-2/fr/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-2-2.po
+${MSGFMT} -o in-3-2/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-2-2.po
 
 : ${DIFF=diff}
 cat <<EOF > in-3-1.ok
index 271d175475d612bbad71ef8bf8b5f54cf840c738..3b5fce7952d3b0be77e89dc4bf0527831e9b086f 100755 (executable)
@@ -9,7 +9,7 @@ test -d in-4/fr || mkdir in-4/fr
 test -d in-4/fr/LC_MESSAGES || mkdir in-4/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-4/fr/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-4.po
+${MSGFMT} -o in-4/fr/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-4.po
 
 # This test works only on systems that have a traditional french locale
 # installed.
index 15181a5a89022449ad810b2e02541cc320b4ea78..4848763da44edd2d3484a40052e263aae493a80e 100755 (executable)
@@ -37,8 +37,8 @@ test -d in-sl-1/fr_FR || mkdir in-sl-1/fr_FR
 test -d in-sl-1/fr_FR/LC_MESSAGES || mkdir in-sl-1/fr_FR/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-sl-1/de_DE/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-setlocale-1-1.po
-${MSGFMT} -o in-sl-1/fr_FR/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-setlocale-1-2.po
+${MSGFMT} -o in-sl-1/de_DE/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-setlocale-1-1.po
+${MSGFMT} -o in-sl-1/fr_FR/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-setlocale-1-2.po
 
 cat <<EOF > in-sl-1.ok
 String1 - Lang1: 1st string
index 23cd6c366ec33b3bd775136d1bd43b0482d66570..87d530bb86a9803296dd817b01c7e3323a51eec7 100755 (executable)
@@ -37,7 +37,7 @@ test -d in-sl-2/de_DE || mkdir in-sl-2/de_DE
 test -d in-sl-2/de_DE/LC_MESSAGES || mkdir in-sl-2/de_DE/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-sl-2/de_DE/LC_MESSAGES/tstprog.mo "$abs_srcdir"/intl-setlocale-2.po
+${MSGFMT} -o in-sl-2/de_DE/LC_MESSAGES/tstprog.mo "$wabs_srcdir"/intl-setlocale-2.po
 
 ../intl-setlocale-2-prg || Exit 1
 
index 61d37659e1aaf8f6ef1b821edfbdd91306473735..b702bef1a002a4be2f7f52ecd6170fc623831a4f 100755 (executable)
@@ -9,7 +9,7 @@ test -d in-th-1/fr || mkdir in-th-1/fr
 test -d in-th-1/fr/LC_MESSAGES || mkdir in-th-1/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-th-1/fr/LC_MESSAGES/tstthread.mo "$abs_srcdir"/intl-thread-1.po
+${MSGFMT} -o in-th-1/fr/LC_MESSAGES/tstthread.mo "$wabs_srcdir"/intl-thread-1.po
 
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
index 038ce51f600337d5d1d77aeff0b367510155df9b..9be950aeb6139ada9715c5dc6c2efda9a0cf8ece 100755 (executable)
@@ -14,8 +14,8 @@ test -d in-th-2/de || mkdir in-th-2/de
 test -d in-th-2/de/LC_MESSAGES || mkdir in-th-2/de/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-th-2/fr/LC_MESSAGES/tstthread.mo "$abs_srcdir"/intl-thread-2-1.po
-${MSGFMT} -o in-th-2/de/LC_MESSAGES/tstthread.mo "$abs_srcdir"/intl-thread-2-2.po
+${MSGFMT} -o in-th-2/fr/LC_MESSAGES/tstthread.mo "$wabs_srcdir"/intl-thread-2-1.po
+${MSGFMT} -o in-th-2/de/LC_MESSAGES/tstthread.mo "$wabs_srcdir"/intl-thread-2-2.po
 
 : ${DIFF=diff}
 cat <<EOF > in-th-2.ok
index 9ca30dee847fb586b76edbf2c0b522198367b2c3..6e35f36369172212b85dc7901e4817c2a3442e18 100755 (executable)
@@ -13,7 +13,7 @@ test -d in-th-3/fr || mkdir in-th-3/fr
 test -d in-th-3/fr/LC_MESSAGES || mkdir in-th-3/fr/LC_MESSAGES
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} -o in-th-3/fr/LC_MESSAGES/tstthread.mo "$abs_srcdir"/intl-thread-3.po
+${MSGFMT} -o in-th-3/fr/LC_MESSAGES/tstthread.mo "$wabs_srcdir"/intl-thread-3.po
 
 : ${LOCALE_FR=fr_FR}
 : ${LOCALE_FR_UTF8=fr_FR.UTF-8}
index 0308580228cad5edbfef6804ac9be558743dc15c..a9ffa25875677bef1139676e8d812e6fbd343185 100755 (executable)
@@ -4,7 +4,7 @@
 # Test output in Qt .qm format.
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} --qt -o mf-qt-1.qm "$abs_srcdir"/qttest_pl.po || Exit 1
+${MSGFMT} --qt -o mf-qt-1.qm "$wabs_srcdir"/qttest_pl.po || Exit 1
 
 : ${CMP=cmp}
 ${CMP} "$abs_srcdir"/qttest_pl.qm mf-qt-1.qm >/dev/null 2>/dev/null
index 482ef19967c13d20d219c7f81a54051579bc9496..8b8ff37ca84416c30b9451a865d4ccb8a25879b0 100755 (executable)
@@ -4,7 +4,7 @@
 # Test msgfmt --qt on a PO file with contexts.
 
 : ${MSGFMT=msgfmt}
-${MSGFMT} --qt "$abs_srcdir"/qttest2_de.po -o mf-qt-2.qm || Exit 1
+${MSGFMT} --qt "$wabs_srcdir"/qttest2_de.po -o mf-qt-2.qm || Exit 1
 
 : ${CMP=cmp}
 ${CMP} "$abs_srcdir"/qttest2_de.qm mf-qt-2.qm >/dev/null 2>/dev/null
index 2223595907fe1e0a48cd12fe2136b22edb712fd7..4f6fcd49fcc0e69d06edb669ba1f3a61be3a343d 100755 (executable)
@@ -37,7 +37,7 @@ msgstr ""
 EOF
 
 : ${MSGINIT=msginit}
-GETTEXTLIBDIR_SRCDIR="$abs_top_srcdir"/src \
+GETTEXTLIBDIR_SRCDIR="$wabs_top_srcdir"/src \
 ${MSGINIT} -l ga_IE --no-translator -o mi-test3.tmp 2>mi-test3.err
 test $? = 0 || { cat mi-test3.err 1>&2; Exit 1; }
 
index ac58dfebe89b13cc6268fcab34e263c6f04129a4..50b295fc0ba6297581dc55233b74245066044451 100755 (executable)
@@ -44,9 +44,9 @@ msgstr ""
 EOF
 
 : ${MSGINIT=msginit}
-GETTEXTLIBDIR_SRCDIR="$abs_top_srcdir"/src \
+GETTEXTLIBDIR_SRCDIR="$wabs_top_srcdir"/src \
 GETTEXTLIBDIR_BUILDDIR="$top_builddir"/src \
-GETTEXTCLDRDIR="$abs_srcdir" \
+GETTEXTCLDRDIR="$wabs_srcdir" \
 ${MSGINIT} -i mi-test4.pot -l foo --no-translator --no-wrap -o mi-test4.tmp 2>mi-test4.err
 test $? = 0 || { cat mi-test4.err 1>&2; Exit 1; }
 
index 5c28dd1514e0c96eb8441614353dec17003d262b..70f4119447999da22b73932ce1112b7c5bd241f0 100755 (executable)
@@ -5,8 +5,8 @@
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-5.tmp \
-  --compendium "$abs_srcdir"/mm-viet.comp.po \
-  /dev/null "$abs_srcdir"/mm-viet.pot || Exit 1
+  --compendium "$wabs_srcdir"/mm-viet.comp.po \
+  /dev/null "$wabs_srcdir"/mm-viet.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-5.tmp > mm-c-5.out || Exit 1
 
 : ${DIFF=diff}
index d5e7731573b0b702061c3dcc2f4f69e3982261dc..7be7f934352292c3320f144d3e45b710ba1fe4fa 100755 (executable)
@@ -8,53 +8,53 @@
 #       mm-ko.utf-8.pot   mm-ko.utf-8.po    mm-ko-comp.utf-8.po
 
 : ${MSGCONV=msgconv}
-${MSGCONV} --to-code=UTF-8 -o mm-ko.utf-8.pot "$abs_srcdir"/mm-ko.ascii.pot
+${MSGCONV} --to-code=UTF-8 -o mm-ko.utf-8.pot "$wabs_srcdir"/mm-ko.ascii.pot
 
 : ${MSGCONV=msgconv}
-${MSGCONV} --to-code=UTF-8 -o mm-ko.utf-8.po "$abs_srcdir"/mm-ko.euc-kr.po
+${MSGCONV} --to-code=UTF-8 -o mm-ko.utf-8.po "$wabs_srcdir"/mm-ko.euc-kr.po
 
 : ${MSGCONV=msgconv}
-${MSGCONV} --to-code=UTF-8 -o mm-ko-comp.utf-8.po "$abs_srcdir"/mm-ko-comp.euc-kr.po
+${MSGCONV} --to-code=UTF-8 -o mm-ko-comp.utf-8.po "$wabs_srcdir"/mm-ko-comp.euc-kr.po
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-AEE.tmp \
-  --compendium "$abs_srcdir"/mm-ko-comp.euc-kr.po \
-  "$abs_srcdir"/mm-ko.euc-kr.po "$abs_srcdir"/mm-ko.ascii.pot || Exit 1
+  --compendium "$wabs_srcdir"/mm-ko-comp.euc-kr.po \
+  "$wabs_srcdir"/mm-ko.euc-kr.po "$wabs_srcdir"/mm-ko.ascii.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-AEE.tmp > mm-c-6-AEE.out || Exit 1
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-AEU.tmp \
   --compendium mm-ko-comp.utf-8.po \
-  "$abs_srcdir"/mm-ko.euc-kr.po "$abs_srcdir"/mm-ko.ascii.pot || Exit 1
+  "$wabs_srcdir"/mm-ko.euc-kr.po "$wabs_srcdir"/mm-ko.ascii.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-AEU.tmp > mm-c-6-AEU.out || Exit 1
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-AUE.tmp \
-  --compendium "$abs_srcdir"/mm-ko-comp.euc-kr.po \
-  mm-ko.utf-8.po "$abs_srcdir"/mm-ko.ascii.pot || Exit 1
+  --compendium "$wabs_srcdir"/mm-ko-comp.euc-kr.po \
+  mm-ko.utf-8.po "$wabs_srcdir"/mm-ko.ascii.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-AUE.tmp > mm-c-6-AUE.out || Exit 1
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-AUU.tmp \
   --compendium mm-ko-comp.utf-8.po \
-  mm-ko.utf-8.po "$abs_srcdir"/mm-ko.ascii.pot || Exit 1
+  mm-ko.utf-8.po "$wabs_srcdir"/mm-ko.ascii.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-AUU.tmp > mm-c-6-AUU.out || Exit 1
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-UEE.tmp \
-  --compendium "$abs_srcdir"/mm-ko-comp.euc-kr.po \
-  "$abs_srcdir"/mm-ko.euc-kr.po mm-ko.utf-8.pot || Exit 1
+  --compendium "$wabs_srcdir"/mm-ko-comp.euc-kr.po \
+  "$wabs_srcdir"/mm-ko.euc-kr.po mm-ko.utf-8.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-UEE.tmp > mm-c-6-UEE.out || Exit 1
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-UEU.tmp \
   --compendium mm-ko-comp.utf-8.po \
-  "$abs_srcdir"/mm-ko.euc-kr.po mm-ko.utf-8.pot || Exit 1
+  "$wabs_srcdir"/mm-ko.euc-kr.po mm-ko.utf-8.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-UEU.tmp > mm-c-6-UEU.out || Exit 1
 
 : ${MSGMERGE=msgmerge}
 ${MSGMERGE} -q -o mm-c-6-UUE.tmp \
-  --compendium "$abs_srcdir"/mm-ko-comp.euc-kr.po \
+  --compendium "$wabs_srcdir"/mm-ko-comp.euc-kr.po \
   mm-ko.utf-8.po mm-ko.utf-8.pot || Exit 1
 LC_ALL=C tr -d '\r' < mm-c-6-UUE.tmp > mm-c-6-UUE.out || Exit 1
 
index b9dbf12f4f9a2e3cdcec9ff3a7dda143159cfafd..be72272b4949566fcee196162aeeffde8c004272 100755 (executable)
@@ -6,13 +6,13 @@
 : ${MSGUNFMT=msgunfmt}
 
 for f in overflow-1.mo overflow-2.mo overflow-3.mo overflow-4.mo overflow-5.mo overflow-6.mo; do
-  LANGUAGE= LC_ALL=C ${MSGUNFMT} "$abs_srcdir"/$f 2>mu-3.err >/dev/null
+  LANGUAGE= LC_ALL=C ${MSGUNFMT} "$wabs_srcdir"/$f 2>mu-3.err >/dev/null
   test $? != 0 || Exit 1
   grep ' is truncated' mu-3.err >/dev/null || Exit 1
 done
 
 for f in sysdep-without-nul.mo; do
-  LANGUAGE= LC_ALL=C ${MSGUNFMT} "$abs_srcdir"/$f 2>mu-3.err >/dev/null
+  LANGUAGE= LC_ALL=C ${MSGUNFMT} "$wabs_srcdir"/$f 2>mu-3.err >/dev/null
   test $? != 0 || Exit 1
   grep ' not NUL terminated' mu-3.err >/dev/null || Exit 1
 done
index 07facf9444da263bcf35242ddc43aa73069698fd..e1bc9e2c688782d4307935dd4bf80f53e4768905 100755 (executable)
@@ -42,7 +42,7 @@ test -d mu-tcl-1-msgs || mkdir mu-tcl-1-msgs
 ${MSGFMT} --tcl -d mu-tcl-1-msgs -l fr mu-tcl-1-fr.po || Exit 1
 
 : ${MSGUNFMT=msgunfmt}
-GETTEXTTCLDIR="$abs_top_srcdir"/src \
+GETTEXTTCLDIR="$wabs_top_srcdir"/src \
 ${MSGUNFMT} --tcl -d mu-tcl-1-msgs -l fr -o mu-tcl-1-prog.out || Exit 1
 
 cat <<\EOF > mu-tcl-1-prog.ok
index b96238eba43cc96f0df83abbbb61bfd4cafe0a95..de78c548626aa73a61c7fd5e6f58a44a4e4a8198 100755 (executable)
@@ -4,7 +4,7 @@
 # Test general operation.
 
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -w 1000 -o msguniq-1.tmp "$abs_srcdir"/msguniq-a.in || Exit 1
+${MSGUNIQ} -w 1000 -o msguniq-1.tmp "$wabs_srcdir"/msguniq-a.in || Exit 1
 LC_ALL=C tr -d '\r' < msguniq-1.tmp > msguniq-1.out || Exit 1
 
 : ${DIFF=diff}
index 234274aec17b6de10d992236b120a94d40d519c8..fdf9140f2a0375f2393a0c15b34a389b47bc32bf 100755 (executable)
@@ -4,7 +4,7 @@
 # Test --unique option.
 
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -w 1000 -u -o msguniq-2.tmp "$abs_srcdir"/msguniq-a.in || Exit 1
+${MSGUNIQ} -w 1000 -u -o msguniq-2.tmp "$wabs_srcdir"/msguniq-a.in || Exit 1
 LC_ALL=C tr -d '\r' < msguniq-2.tmp > msguniq-2.out || Exit 1
 
 cat <<\EOF > msguniq-2.ok
index 0949d9d8f7afb02a590fc586d51412339c1ae8aa..b05623e5fc2561a397b787fccb86bdebce306d76 100755 (executable)
@@ -4,7 +4,7 @@
 # Test --repeated option.
 
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} -w 1000 -d -o msguniq-3.tmp "$abs_srcdir"/msguniq-a.in || Exit 1
+${MSGUNIQ} -w 1000 -d -o msguniq-3.tmp "$wabs_srcdir"/msguniq-a.in || Exit 1
 LC_ALL=C tr -d '\r' < msguniq-3.tmp > msguniq-3.out || Exit 1
 
 cat <<\EOF > msguniq-3.ok
index e4e5e48a3c94c1120fdd0bcf73d70dee8654c3c9..94ea0651f925312a297bce086a2f39520586201c 100755 (executable)
@@ -4,10 +4,10 @@
 # Test general operation with Java .properties syntax.
 
 : ${MSGUNIQ-msguniq}
-${MSGUNIQ} --properties-input --properties-output -w 1000 -o msguniq-4.out "$abs_srcdir"/msguniq-a.inp || Exit 1
+${MSGUNIQ} --properties-input --properties-output -w 1000 -o msguniq-4.out "$wabs_srcdir"/msguniq-a.inp || Exit 1
 
 : ${MSGCAT-msgcat}
-${MSGCAT} --properties-output -w 1000 -o msguniq-4.ok "$abs_srcdir"/msguniq-a.out || Exit 1
+${MSGCAT} --properties-output -w 1000 -o msguniq-4.ok "$wabs_srcdir"/msguniq-a.out || Exit 1
 
 : ${DIFF=diff}
 ${DIFF} msguniq-4.ok msguniq-4.out
index f5040dc7a50e122aeaf1c85753155da2ca53a26d..84ad7d2bda01c9c362ce508491dd14b0c8aca94f 100755 (executable)
@@ -2,7 +2,7 @@
 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
 
 : ${XGETTEXT=xgettext}
-${XGETTEXT} -o plural-1-cake.tmp --omit-header --no-location "$abs_srcdir"/plural-1-prg.c || Exit 1
+${XGETTEXT} -o plural-1-cake.tmp --omit-header --no-location "$wabs_srcdir"/plural-1-prg.c || Exit 1
 LC_ALL=C tr -d '\r' < plural-1-cake.tmp > plural-1-cake.pot || Exit 1
 
 cat <<EOF > plural-1-cake.ok
index 29695a36925358f4e39d84f53c4318d4719e67a5..8313c18da77f6ce40bc8b466e71f1f37f5f8e726 100755 (executable)
@@ -8,8 +8,8 @@
 rm -f zero-domain.po
 : ${XGETTEXT=xgettext}
 LC_MESSAGES=C LC_ALL= \
-${XGETTEXT} -k_ -d zero-domain -x "$abs_top_srcdir"/po/gettext-tools.pot \
-  "$abs_top_srcdir"/src/xgettext.c >xg-test1.err 2>&1
+${XGETTEXT} -k_ -d zero-domain -x "$wabs_top_srcdir"/po/gettext-tools.pot \
+  "$wabs_top_srcdir"/src/xgettext.c >xg-test1.err 2>&1
 result=$?
 cat xg-test1.err | grep -v 'warning: Charset' | grep -v '^ '
 test $result = 0 || { Exit 1; }
index b1b5e1087151f391d7a3d723a1fe0e5de10da3c8..eae820536e106747710a348727792b41cde6d77e 100755 (executable)
@@ -7,7 +7,7 @@
 
 : ${XGETTEXT=xgettext}
 ${XGETTEXT} -d xg-c-1.tmp -k_ --omit-header --no-location \
- "$abs_top_srcdir"/src/xgettext.c "$abs_top_srcdir"/src/msgfmt.c || Exit 1
+ "$wabs_top_srcdir"/src/xgettext.c "$wabs_top_srcdir"/src/msgfmt.c || Exit 1
 LC_ALL=C tr -d '\r' < xg-c-1.tmp.po > xg-c-1.po || Exit 1
 
 : ${DIFF=diff}
index b1a475ad1910ad138dd11986763333d59efcf05a..6cde93e7033e3f8d8ce571e008337cf03f9f7b85 100755 (executable)
@@ -6,7 +6,7 @@
 : ${XGETTEXT=xgettext}
 
 ${XGETTEXT} --from-code=ISO-8859-1 --add-comments --no-location --no-wrap \
-            -o xg-c-comment-6.tmp "$abs_srcdir"/xg-c-comment-6.c || Exit 1
+            -o xg-c-comment-6.tmp "$wabs_srcdir"/xg-c-comment-6.c || Exit 1
 grep -v 'POT-Creation-Date' < xg-c-comment-6.tmp > xg-c-comment-6.tmq || Exit 1
 LC_ALL=C tr -d '\r' < xg-c-comment-6.tmq > xg-c-comment-6.po || Exit 1
 
index ee6e8555a95c48619f1e0598ae416f8a11555a1a..3ad9358b69069d9d9cfaf40995569ef8bffb885d 100755 (executable)
@@ -6,7 +6,7 @@
 : ${XGETTEXT=xgettext}
 
 ${XGETTEXT} --no-location --no-wrap \
-            -o xg-c-escape-3.tmp "$abs_srcdir"/xg-c-escape-3.c || Exit 1
+            -o xg-c-escape-3.tmp "$wabs_srcdir"/xg-c-escape-3.c || Exit 1
 grep -v 'POT-Creation-Date' < xg-c-escape-3.tmp > xg-c-escape-3.tmq || Exit 1
 LC_ALL=C tr -d '\r' < xg-c-escape-3.tmq > xg-c-escape-3.po || Exit 1
 
index 66f688e3a05bf686aa5122317596e7c7c660211e..b6ea86ea8e5f9890d2dc7b2951523b48d07846bf 100755 (executable)
@@ -6,7 +6,7 @@
 : ${XGETTEXT=xgettext}
 
 ${XGETTEXT} --from-code=ISO-8859-1 --add-comments --no-location --no-wrap \
-            -o xg-vala-2.tmp "$abs_srcdir"/xg-vala-2.vala || Exit 1
+            -o xg-vala-2.tmp "$wabs_srcdir"/xg-vala-2.vala || Exit 1
 grep -v 'POT-Creation-Date' < xg-vala-2.tmp > xg-vala-2.tmq || Exit 1
 LC_ALL=C tr -d '\r' < xg-vala-2.tmq > xg-vala-2.po || Exit 1