* tests/pot-copyright.test: Add trailing `:' command.
* tests/pot-empty.test: Likewise.
* tests/pot-download1.test: Likewise. Use `Exit', not `exit'.
($required): Remove gzip, as we must take it for granted anyway.
* tests/pot-format-qt1.test: Use `Exit', not `exit'. Use `$MAKE',
not bare `make'. Add trailing `:' command. Avoid useless use of
cat. Do not redirect output of grep, cmp, etc. to /dev/null.
Other minor cosmetic changes.
* tests/pot-format-java1.test: Likewise, and ...
($required): Remove gzip, as we must take it for granted anyway.
* tests/pot-format-java2.test: Likewise.
* tests/pot-format-tcl1.test: Likewise.
* tests/pot-linguas.test: Likewise.
* tests/pot-noinst.test: Likewise.
* tests/pot-samedir.test: Likewise.
* tests/pot-topsrcdir.test: Likewise.
* tests/pot-format-csharp1.test: Likewise, and quote all literal
dots in grep regexps.
* tests/pot-enable1.test: Use `$MAKE', not bare `make'. Do not
redirect grep output to /dev/null. Add trailing `:' command.
(Makefile.am): Explicitly declare phony target as such.
* tests/pot-enable2.test: Likewise.
* tests/pot-msgidbugs.test: Use `$MAKE', not bare `make'. Avoid
useless use of cat. Add trailing `:' command.
* tests/pot-xgettext1.test: Likewise.
* tests/pot-xgettext2.test: Likewise.
* tests/pot-xgettext3.test: Likewise.
* tests/pot-xgettext4.test: Likewise.
* tests/pot-no-linguas.test: Likewise, and do not redirect grep
output to /dev/null.
* tests/pot-override1.test: Likewise.
* tests/pot-macro-warn.test: Avoid useless use of `AUTOMAKE_run'.
Add trailing `:' command.
* tests/pot-warn1.test: Likewise.
* tests/pot-warn2.test: Likewise.
2010-09-06 Stefano Lattarini <stefano.lattarini@gmail.com>
+ Fixlets for internationalization tests.
+ * tests/pot-copyright.test: Add trailing `:' command. Use
+ `$MAKE', not bare `make'.
+ * tests/pot-empty.test: Likewise.
+ * tests/pot-download1.test: Likewise. Use `Exit', not `exit'.
+ ($required): Remove gzip, as we must take it for granted anyway.
+ * tests/pot-format-qt1.test: Use `Exit', not `exit'. Use `$MAKE',
+ not bare `make'. Add trailing `:' command. Avoid useless use of
+ cat. Do not redirect output of grep, cmp, etc. to /dev/null.
+ Other minor cosmetic changes.
+ * tests/pot-format-java1.test: Likewise, and ...
+ ($required): Remove gzip, as we must take it for granted anyway.
+ * tests/pot-format-java2.test: Likewise.
+ * tests/pot-format-tcl1.test: Likewise.
+ * tests/pot-linguas.test: Likewise.
+ * tests/pot-noinst.test: Likewise.
+ * tests/pot-samedir.test: Likewise.
+ * tests/pot-topsrcdir.test: Likewise.
+ * tests/pot-format-csharp1.test: Likewise, and quote all literal
+ dots in grep regexps.
+ * tests/pot-enable1.test: Use `$MAKE', not bare `make'. Do not
+ redirect grep output to /dev/null. Add trailing `:' command.
+ (Makefile.am): Explicitly declare phony target as such.
+ * tests/pot-enable2.test: Likewise.
+ * tests/pot-msgidbugs.test: Use `$MAKE', not bare `make'. Avoid
+ useless use of cat. Add trailing `:' command.
+ * tests/pot-xgettext1.test: Likewise.
+ * tests/pot-xgettext2.test: Likewise.
+ * tests/pot-xgettext3.test: Likewise.
+ * tests/pot-xgettext4.test: Likewise.
+ * tests/pot-no-linguas.test: Likewise, and do not redirect grep
+ output to /dev/null.
+ * tests/pot-override1.test: Likewise.
+ * tests/pot-macro-warn.test: Avoid useless use of `AUTOMAKE_run'.
+ Add trailing `:' command.
+ * tests/pot-warn1.test: Likewise.
+ * tests/pot-warn2.test: Likewise.
+
List internationalization tests in tests/Makefile.am.
* tests/Makefile.am (TESTS, XFAIL_TESTS): Add internationalization
tests `pot-*.test' introduced in previous commits.
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
# Check the download of translations from the Translation Project.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
LINGUAS="de" $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that after "make install", a German translation has been installed.
- make install
+ $MAKE install
test -f "$instdir"/share/locale/de/LC_MESSAGES/clisp.mo
# Check that after "make dist", the tarball does not include the German
# translation.
- make dist
+ $MAKE dist
gzip -d -c < pot-download1-1.0.tar.gz | tar tf - > filelist
- if grep '^pot-download1-1\.0/clisp-de\.po$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-download1-1\.0/clisp-de\.po$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
- make dist
+ $MAKE
+ $MAKE dist
# Check that no .pot file was created.
test ! -f posub/foo-bar.pot
- make install
+ $MAKE install
# Check that still, no .pot file was created.
test ! -f posub/foo-bar.pot
test ! -d "$instdir"/share/locale/de/LC_MESSAGES
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
set -e
cat > Makefile.am << 'END'
+.PHONY: check-USE_NLS-yes check-USE_NLS-no
check-USE_NLS-yes:
test "@USE_NLS@" = yes
check-USE_NLS-no:
$AUTOCONF
# Check that the --help output advertises --disable-nls.
-./configure --help | grep ' --disable-nls ' >/dev/null
+./configure --help | grep ' --disable-nls '
# Check that --enable-nls causes USE_NLS to be yes.
./configure --enable-nls
-make check-USE_NLS-yes
+$MAKE check-USE_NLS-yes
-make distclean
+$MAKE distclean
# Check that --disable-nls causes USE_NLS to be no.
./configure --disable-nls
-make check-USE_NLS-no
+$MAKE check-USE_NLS-no
+
+:
set -e
cat > Makefile.am << 'END'
+.PHONY: check-USE_NLS-yes check-USE_NLS-no
check-USE_NLS-yes:
test "@USE_NLS@" = yes
check-USE_NLS-no:
$AUTOCONF
# Check that the --help output advertises --disable-nls.
-./configure --help | grep ' --disable-nls ' >/dev/null
+./configure --help | grep ' --disable-nls '
# Check that --enable-nls causes USE_NLS to be yes.
./configure --enable-nls
-make check-USE_NLS-yes
+$MAKE check-USE_NLS-yes
-make distclean
+$MAKE distclean
# Check that --disable-nls causes USE_NLS to be no.
./configure --disable-nls
-make check-USE_NLS-no
+$MAKE check-USE_NLS-no
+
+:
# Check the creation of compiled message catalogs in C# format.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make install" creates the expected .pot file, .po files
# and .resources.dll files.
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/posub/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,resources.dll}
# but not the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-format-csharp1-1.0.tar.gz | tar tf - > filelist
- grep '^pot-format-csharp1-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-format-csharp1-1\.0/posub/de/foo-bar\.resources.dll$' filelist >/dev/null
- grep '^pot-format-csharp1-1\.0/posub/foo-bar-fr_CA@latin\.po$' filelist >/dev/null
- grep '^pot-format-csharp1-1\.0/posub/fr-CA-Latn/foo-bar\.resources.dll$' filelist >/dev/null
- if grep '^pot-format-csharp1-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-csharp1-1\.0/posub/es/foo-bar\.resources.dll$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-csharp1-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-csharp1-1\.0/posub/foo-bar-fr_CA@latin\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-csharp1-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-format-csharp1-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-format-csharp1-1\.0/posub/de/foo-bar\.resources\.dll$' filelist
+ grep '^pot-format-csharp1-1\.0/posub/foo-bar-fr_CA@latin\.po$' filelist
+ grep '^pot-format-csharp1-1\.0/posub/fr-CA-Latn/foo-bar\.resources\.dll$' filelist
+ grep '^pot-format-csharp1-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-format-csharp1-1\.0/posub/es/foo-bar\.resources\.dll$' filelist && Exit 1
+ grep '^pot-format-csharp1-1\.0/posub/foo-bar-de\.mo$' filelist && Exit 1
+ grep '^pot-format-csharp1-1\.0/posub/foo-bar-fr_CA@latin\.mo$' filelist && Exit 1
+ grep '^pot-format-csharp1-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
# FIXME: Resource names with a dash maybe don't work. If so, it should be
# mentioned in the documentation.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make install" creates the expected .pot file, .po files
# and .properties files.
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/posub/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,properties}
# but not the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-format-java1-1.0.tar.gz | tar tf - > filelist
- grep '^pot-format-java1-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-format-java1-1\.0/posub/foo-bar_de\.properties$' filelist >/dev/null
- grep '^pot-format-java1-1\.0/posub/foo-bar-fr\.po$' filelist >/dev/null
- grep '^pot-format-java1-1\.0/posub/foo-bar_fr\.properties$' filelist >/dev/null
- if grep '^pot-format-java1-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java1-1\.0/posub/foo-bar_es\.properties$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java1-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java1-1\.0/posub/foo-bar-fr\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java1-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-format-java1-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-format-java1-1\.0/posub/foo-bar_de\.properties$' filelist
+ grep '^pot-format-java1-1\.0/posub/foo-bar-fr\.po$' filelist
+ grep '^pot-format-java1-1\.0/posub/foo-bar_fr\.properties$' filelist
+ grep '^pot-format-java1-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-format-java1-1\.0/posub/foo-bar_es\.properties$' filelist && Exit 1
+ grep '^pot-format-java1-1\.0/posub/foo-bar-de\.mo$' filelist && Exit 1
+ grep '^pot-format-java1-1\.0/posub/foo-bar-fr\.mo$' filelist && Exit 1
+ grep '^pot-format-java1-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
# FIXME: Class names with a dash probably don't work. If so, it should be
# mentioned in the documentation.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make install" creates the expected .pot file, .po files
# and .class files.
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/posub/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,class} but not
# the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-format-java2-1.0.tar.gz | tar tf - > filelist
- grep '^pot-format-java2-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-format-java2-1\.0/posub/foo-bar_de\.class$' filelist >/dev/null
- grep '^pot-format-java2-1\.0/posub/foo-bar-fr\.po$' filelist >/dev/null
- grep '^pot-format-java2-1\.0/posub/foo-bar_fr\.class$' filelist >/dev/null
- if grep '^pot-format-java2-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java2-1\.0/posub/foo-bar_es\.class$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java2-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java2-1\.0/posub/foo-bar-fr\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-java2-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-format-java2-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-format-java2-1\.0/posub/foo-bar_de\.class$' filelist
+ grep '^pot-format-java2-1\.0/posub/foo-bar-fr\.po$' filelist
+ grep '^pot-format-java2-1\.0/posub/foo-bar_fr\.class$' filelist
+ grep '^pot-format-java2-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-format-java2-1\.0/posub/foo-bar_es\.class$' filelist && Exit 1
+ grep '^pot-format-java2-1\.0/posub/foo-bar-de\.mo$' filelist && Exit 1
+ grep '^pot-format-java2-1\.0/posub/foo-bar-fr\.mo$' filelist && Exit 1
+ grep '^pot-format-java2-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make install" creates the expected .pot file, .po files
# and .qm files.
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/posub/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,qm} but not
# the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-format-qt1-1.0.tar.gz | tar tf - > filelist
- grep '^pot-format-qt1-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-format-qt1-1\.0/posub/foo-bar-de\.qm$' filelist >/dev/null
- grep '^pot-format-qt1-1\.0/posub/foo-bar-fr\.po$' filelist >/dev/null
- grep '^pot-format-qt1-1\.0/posub/foo-bar-fr\.qm$' filelist >/dev/null
- if grep '^pot-format-qt1-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-qt1-1\.0/posub/foo-bar-es\.qm$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-qt1-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-qt1-1\.0/posub/foo-bar-fr\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-qt1-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-de\.qm$' filelist
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-fr\.po$' filelist
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-fr\.qm$' filelist
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-es\.qm$' filelist && Exit 1
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-de\.mo$' filelist && Exit 1
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-fr\.mo$' filelist && Exit 1
+ grep '^pot-format-qt1-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
# Check the creation of compiled message catalogs in Tcl format.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make install" creates the expected .pot file, .po files
# and .msg files.
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/posub/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,msg} but not
# the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-format-tcl1-1.0.tar.gz | tar tf - > filelist
- grep '^pot-format-tcl1-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-format-tcl1-1\.0/posub/foo-bar/de\.msg$' filelist >/dev/null
- grep '^pot-format-tcl1-1\.0/posub/foo-bar-fr_CA\.po$' filelist >/dev/null
- grep '^pot-format-tcl1-1\.0/posub/foo-bar/fr_ca\.msg$' filelist >/dev/null
- if grep '^pot-format-tcl1-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-tcl1-1\.0/posub/foo-bar/es\.msg$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-tcl1-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-tcl1-1\.0/posub/foo-bar-fr_CA\.mo$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-format-tcl1-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar/de\.msg$' filelist
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar-fr_CA\.po$' filelist
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar/fr_ca\.msg$' filelist
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar/es\.msg$' filelist && Exit 1
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar-de\.mo$' filelist && Exit 1
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar-fr_CA\.mo$' filelist && Exit 1
+ grep '^pot-format-tcl1-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
# FIXME: Should "make install" really update the PO files and MO files?
# Current po/Makefile.in.in does not do it.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
cat > $sourcedir/src/main.c << 'END'
#include <stdio.h>
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/posub/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,mo} but not
# the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-linguas-1.0.tar.gz | tar tf - > filelist
- grep '^pot-linguas-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-linguas-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null
- grep '^pot-linguas-1\.0/posub/foo-bar-fr\.po$' filelist >/dev/null
- grep '^pot-linguas-1\.0/posub/foo-bar-fr\.mo$' filelist >/dev/null
- if grep '^pot-linguas-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-linguas-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-linguas-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-linguas-1\.0/posub/foo-bar-de\.mo$' filelist
+ grep '^pot-linguas-1\.0/posub/foo-bar-fr\.po$' filelist
+ grep '^pot-linguas-1\.0/posub/foo-bar-fr\.mo$' filelist
+ grep '^pot-linguas-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-linguas-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Try modifying a source file.
cp -p $sourcedir/posub/foo-bar-fr.mo $sourcedir/posub/foo-bar-fr.mobak
cp -p $sourcedir/posub/foo-bar-es.po $sourcedir/posub/foo-bar-es.pobak
cp -p $sourcedir/posub/foo-bar-es.mo $sourcedir/posub/foo-bar-es.mobak
- make
+ $MAKE
diff $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
- cmp $sourcedir/posub/foo-bar-de.pobak $sourcedir/posub/foo-bar-de.po >/dev/null
- cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo >/dev/null
- cmp $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po >/dev/null
- cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo >/dev/null
- cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po >/dev/null
- cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo >/dev/null
+ cmp $sourcedir/posub/foo-bar-de.pobak $sourcedir/posub/foo-bar-de.po
+ cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo
+ cmp $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po
+ cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo
+ cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po
+ cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo
# Check that "make install" updates the POT file, the PO files, and the
# MO files listed in the _LINGUAS variable, regardless whether LINGUAS
# was specified or not.
- make install
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
- cat $sourcedir/posub/foo-bar-de.po | grep great >/dev/null
- if cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo >/dev/null; then
- exit 1
- fi
- cat $sourcedir/posub/foo-bar-fr.po | grep great >/dev/null
- if cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo >/dev/null; then
- exit 1
- fi
- cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po >/dev/null
- cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo >/dev/null
+ $MAKE install
+ grep great $sourcedir/posub/foo-bar.pot
+ # NOTE: This is *not* a useless use of cat. The *.po files can contain
+ # non-ASCII characters, which might cause problems with some `grep'
+ # programs. BSD `grep' works from a pipe, but not a seekable file.
+ # GNU or BSD `grep -a' works on files, but is not portable.
+ cat $sourcedir/posub/foo-bar-de.po | grep great
+ cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo && Exit 1
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/posub/foo-bar-fr.po | grep great
+ cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo && Exit 1
+ cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po
+ cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo
# Check that "make dist" updates the POT file, the PO files, and the
# MO files listed in the _LINGUAS variable, regardless whether LINGUAS
cp -p $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo
cp -p $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po
cp -p $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo
- make dist
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
- cat $sourcedir/posub/foo-bar-de.po | grep great >/dev/null
- if cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo >/dev/null; then
- exit 1
- fi
- cat $sourcedir/posub/foo-bar-fr.po | grep great >/dev/null
- if cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo >/dev/null; then
- exit 1
- fi
- cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po >/dev/null
- cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo >/dev/null
+ $MAKE dist
+ grep great $sourcedir/posub/foo-bar.pot
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/posub/foo-bar-de.po | grep great
+ cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo && Exit 1
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/posub/foo-bar-fr.po | grep great
+ cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo && Exit 1
+ cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po
+ cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo
# Check that the updated PO files contain 'previous msgid' fields.
- cat $sourcedir/posub/foo-bar-de.po | grep '^#| msgid "Hello, world\.\\n"$' >/dev/null
- cat $sourcedir/posub/foo-bar-fr.po | grep '^#| msgid "Hello, world\.\\n"$' >/dev/null
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/posub/foo-bar-de.po | grep '^#| msgid "Hello, world\.\\n"$'
+ cat $sourcedir/posub/foo-bar-fr.po | grep '^#| msgid "Hello, world\.\\n"$'
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- rm -f $sourcedir/posub/foo-bar.potbak $sourcedir/posub/*.pobak $sourcedir/posub/*.mobak
- make distclean
+ rm -f $sourcedir/posub/foo-bar.potbak $sourcedir/posub/*.[mp]obak
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
$ACLOCAL
# Check that there is no warning any more.
+$AUTOMAKE -Werror
-AUTOMAKE_run 0 -Werror
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
cat > $sourcedir/src/main.c << 'END'
#include <stdio.h>
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that "make install" creates the expected .pot file.
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that "make" does not rebuild the POT file.
cp -p $sourcedir/posub/foo-bar.pot $sourcedir/posub/foo-bar.potbak
- make
+ $MAKE
diff $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
# Check that "make dist" updates the POT file.
- make dist
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
+ $MAKE dist
+ grep great $sourcedir/posub/foo-bar.pot
# Check that "make install" updates the POT file.
cp -p $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
- make install
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
+ $MAKE install
+ grep great $sourcedir/posub/foo-bar.pot
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
rm -f $sourcedir/posub/foo-bar.potbak
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
# configure time has no effect. Otherwise, everything is the same as in the
# pot-linguas test.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
cat > $sourcedir/src/main.c << 'END'
#include <stdio.h>
# Check that "make install" does not create the .pot file and .mo files.
# (They are not needed for installation.)
- make install
+ $MAKE install
test ! -f $sourcedir/posub/foo-bar.pot
test ! -f $sourcedir/posub/foo-bar-de.mo
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains posub/foo-bar-{de,fr}.{po,mo} but not
# the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-noinst-1.0.tar.gz | tar tf - > filelist
- grep '^pot-noinst-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-noinst-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null
- grep '^pot-noinst-1\.0/posub/foo-bar-fr\.po$' filelist >/dev/null
- grep '^pot-noinst-1\.0/posub/foo-bar-fr\.mo$' filelist >/dev/null
- if grep '^pot-noinst-1\.0/posub/foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-noinst-1\.0/posub/foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-noinst-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-noinst-1\.0/posub/foo-bar-de\.mo$' filelist
+ grep '^pot-noinst-1\.0/posub/foo-bar-fr\.po$' filelist
+ grep '^pot-noinst-1\.0/posub/foo-bar-fr\.mo$' filelist
+ grep '^pot-noinst-1\.0/posub/foo-bar-es\.po$' filelist && Exit 1
+ grep '^pot-noinst-1\.0/posub/foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Try modifying a source file.
cp -p $sourcedir/posub/foo-bar-fr.mo $sourcedir/posub/foo-bar-fr.mobak
cp -p $sourcedir/posub/foo-bar-es.po $sourcedir/posub/foo-bar-es.pobak
cp -p $sourcedir/posub/foo-bar-es.mo $sourcedir/posub/foo-bar-es.mobak
- make
+ $MAKE
diff $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
- cmp $sourcedir/posub/foo-bar-de.pobak $sourcedir/posub/foo-bar-de.po >/dev/null
- cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo >/dev/null
- cmp $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po >/dev/null
- cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo >/dev/null
- cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po >/dev/null
- cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo >/dev/null
+ cmp $sourcedir/posub/foo-bar-de.pobak $sourcedir/posub/foo-bar-de.po
+ cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo
+ cmp $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po
+ cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo
+ cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po
+ cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo
# Check that "make install" does not update the POT file, the PO files,
# and the MO files.
- make install
+ $MAKE install
diff $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
- cmp $sourcedir/posub/foo-bar-de.pobak $sourcedir/posub/foo-bar-de.po >/dev/null
- cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo >/dev/null
- cmp $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po >/dev/null
- cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo >/dev/null
- cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po >/dev/null
- cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo >/dev/null
+ cmp $sourcedir/posub/foo-bar-de.pobak $sourcedir/posub/foo-bar-de.po
+ cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo
+ cmp $sourcedir/posub/foo-bar-fr.pobak $sourcedir/posub/foo-bar-fr.po
+ cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo
+ cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po
+ cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo
# Check that "make dist" updates the POT file, the PO files, and the
# MO files listed in the _LINGUAS variable, regardless whether LINGUAS
# was specified or not.
- make dist
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
- cat $sourcedir/posub/foo-bar-de.po | grep great >/dev/null
- if cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo >/dev/null; then
- exit 1
- fi
- cat $sourcedir/posub/foo-bar-fr.po | grep great >/dev/null
- if cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo >/dev/null; then
- exit 1
- fi
- cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po >/dev/null
- cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo >/dev/null
+ $MAKE dist
+ grep great $sourcedir/posub/foo-bar.pot
+ # NOTE: This is *not* a useless use of cat. The *.po files can contain
+ # non-ASCII characters, which might cause problems with some `grep'
+ # programs. BSD `grep' works from a pipe, but not a seekable file.
+ # GNU or BSD `grep -a' works on files, but is not portable.
+ cat $sourcedir/posub/foo-bar-de.po | grep great
+ cmp $sourcedir/posub/foo-bar-de.mobak $sourcedir/posub/foo-bar-de.mo && Exit 1
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/posub/foo-bar-fr.po | grep great
+ cmp $sourcedir/posub/foo-bar-fr.mobak $sourcedir/posub/foo-bar-fr.mo && Exit 1
+ cmp $sourcedir/posub/foo-bar-es.pobak $sourcedir/posub/foo-bar-es.po
+ cmp $sourcedir/posub/foo-bar-es.mobak $sourcedir/posub/foo-bar-es.mo
# Check that the updated PO files contain 'previous msgid' fields.
- cat $sourcedir/posub/foo-bar-de.po | grep '^#| msgid "Hello, world\.\\n"$' >/dev/null
- cat $sourcedir/posub/foo-bar-fr.po | grep '^#| msgid "Hello, world\.\\n"$' >/dev/null
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/posub/foo-bar-de.po | grep '^#| msgid "Hello, world\.\\n"$'
+ cat $sourcedir/posub/foo-bar-fr.po | grep '^#| msgid "Hello, world\.\\n"$'
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- rm -f $sourcedir/posub/foo-bar.potbak $sourcedir/posub/*.pobak $sourcedir/posub/*.mobak
- make distclean
+ rm -f $sourcedir/posub/foo-bar.potbak $sourcedir/posub/*.[mp]obak
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
cat > $sourcedir/src/main.c << 'END'
#include <stdio.h>
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
# Check that "make install" creates the expected .pot file.
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
# Check that "make" does not rebuild the POT file.
cp -p $sourcedir/posub/foo-bar.pot $sourcedir/posub/foo-bar.potbak
- make
+ $MAKE
diff $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
# Check that "make dist" updates the POT file.
- make dist
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
+ $MAKE dist
+ grep great $sourcedir/posub/foo-bar.pot
# Check that "make install" updates the POT file.
cp -p $sourcedir/posub/foo-bar.potbak $sourcedir/posub/foo-bar.pot
- make install
- cat $sourcedir/posub/foo-bar.pot | grep great >/dev/null
+ $MAKE install
+ grep great $sourcedir/posub/foo-bar.pot
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
rm -f $sourcedir/posub/foo-bar.potbak
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
# Check that different .pot files in the same directory don't collide.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make install" creates the expected .pot files and .mo files.
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected1
rm -f actual
test -f $sourcedir/posub/foo-baz.pot
test $builddir = '.' || test ! -f posub/foo-baz.pot
- cat $sourcedir/posub/foo-baz.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-baz.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected2
rm -f actual
test -f "$instdir"/share/locale/it/LC_MESSAGES/foo-baz.mo
test ! -f "$instdir"/share/locale/fr/LC_MESSAGES/foo-baz.mo
# Check that the two .mo files for the same language are different.
- if cmp "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo "$instdir"/share/locale/de/LC_MESSAGES/foo-baz.mo >/dev/null; then
- exit 1
- fi
+ cmp "$instdir"/share/locale/de/LC_MESSAGES/foo-bar.mo \
+ "$instdir"/share/locale/de/LC_MESSAGES/foo-baz.mo && Exit 1
- make dist
+ $MAKE dist
# Check that the tarball contains the .po files and .mo files for the
# specified languages, but not more.
gzip -d -c < pot-samedir-1.0.tar.gz | tar tf - > filelist
- grep '^pot-samedir-1\.0/posub/foo-bar-de\.po$' filelist >/dev/null
- grep '^pot-samedir-1\.0/posub/foo-bar-de\.mo$' filelist >/dev/null
- grep '^pot-samedir-1\.0/posub/foo-bar-fr\.po$' filelist >/dev/null
- grep '^pot-samedir-1\.0/posub/foo-bar-fr\.mo$' filelist >/dev/null
- if grep '^pot-samedir-1\.0/posub/foo-bar-it\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-samedir-1\.0/posub/foo-bar-it\.mo$' filelist >/dev/null; then
- exit 1
- fi
- grep '^pot-samedir-1\.0/posub/foo-baz-de\.po$' filelist >/dev/null
- grep '^pot-samedir-1\.0/posub/foo-baz-de\.mo$' filelist >/dev/null
- grep '^pot-samedir-1\.0/posub/foo-baz-it\.po$' filelist >/dev/null
- grep '^pot-samedir-1\.0/posub/foo-baz-it\.mo$' filelist >/dev/null
- if grep '^pot-samedir-1\.0/posub/foo-baz-fr\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^pot-samedir-1\.0/posub/foo-baz-fr\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^pot-samedir-1\.0/posub/foo-bar-de\.po$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-bar-de\.mo$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-bar-fr\.po$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-bar-fr\.mo$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-bar-it\.po$' filelist && Exit 1
+ grep '^pot-samedir-1\.0/posub/foo-bar-it\.mo$' filelist && Exit 1
+ grep '^pot-samedir-1\.0/posub/foo-baz-de\.po$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-baz-de\.mo$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-baz-it\.po$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-baz-it\.mo$' filelist
+ grep '^pot-samedir-1\.0/posub/foo-baz-fr\.po$' filelist && Exit 1
+ grep '^pot-samedir-1\.0/posub/foo-baz-fr\.mo$' filelist && Exit 1
rm -f filelist
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
# FIXME: Should "make install" really update the PO files and MO files?
# Current po/Makefile.in.in does not do it.
-required='gzip'
. ./defs || Exit 1
set -e
instdir="`pwd`/instdir"
cd $builddir
env $config_options $sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
cat > $sourcedir/src/main.c << 'END'
#include <stdio.h>
# (They are created under $sourcedir, because the files are distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make install
+ $MAKE install
test -f $sourcedir/foo-bar.pot
test $builddir = '.' || test ! -f foo-bar.pot
- cat $sourcedir/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
rm -f $sourcedir/foo-bar.pot
- make dist
+ $MAKE dist
test -f $sourcedir/foo-bar.pot
test $builddir = '.' || test ! -f foo-bar.pot
- cat $sourcedir/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Check that the tarball contains foo-bar-{de,fr}.{po,mo} but not
# the others, regardless whether LINGUAS was specified or not.
gzip -d -c < pot-linguas-1.0.tar.gz | tar tf - > filelist
- grep '^foo-bar-de\.po$' filelist >/dev/null
- grep '^foo-bar-de\.mo$' filelist >/dev/null
- grep '^foo-bar-fr\.po$' filelist >/dev/null
- grep '^foo-bar-fr\.mo$' filelist >/dev/null
- if grep '^foo-bar-es\.po$' filelist >/dev/null; then
- exit 1
- fi
- if grep '^foo-bar-es\.mo$' filelist >/dev/null; then
- exit 1
- fi
+ grep '^foo-bar-de\.po$' filelist
+ grep '^foo-bar-de\.mo$' filelist
+ grep '^foo-bar-fr\.po$' filelist
+ grep '^foo-bar-fr\.mo$' filelist
+ grep '^foo-bar-es\.po$' filelist && Exit 1
+ grep '^foo-bar-es\.mo$' filelist && Exit 1
rm -f filelist
# Try modifying a source file.
cp -p $sourcedir/foo-bar-fr.mo $sourcedir/foo-bar-fr.mobak
cp -p $sourcedir/foo-bar-es.po $sourcedir/foo-bar-es.pobak
cp -p $sourcedir/foo-bar-es.mo $sourcedir/foo-bar-es.mobak
- make
+ $MAKE
diff $sourcedir/foo-bar.potbak $sourcedir/foo-bar.pot
- cmp $sourcedir/foo-bar-de.pobak $sourcedir/foo-bar-de.po >/dev/null
- cmp $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo >/dev/null
- cmp $sourcedir/foo-bar-fr.pobak $sourcedir/foo-bar-fr.po >/dev/null
- cmp $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo >/dev/null
- cmp $sourcedir/foo-bar-es.pobak $sourcedir/foo-bar-es.po >/dev/null
- cmp $sourcedir/foo-bar-es.mobak $sourcedir/foo-bar-es.mo >/dev/null
+ cmp $sourcedir/foo-bar-de.pobak $sourcedir/foo-bar-de.po
+ cmp $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo
+ cmp $sourcedir/foo-bar-fr.pobak $sourcedir/foo-bar-fr.po
+ cmp $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo
+ cmp $sourcedir/foo-bar-es.pobak $sourcedir/foo-bar-es.po
+ cmp $sourcedir/foo-bar-es.mobak $sourcedir/foo-bar-es.mo
# Check that "make install" updates the POT file, the PO files, and the
# MO files listed in the _LINGUAS variable, regardless whether LINGUAS
# was specified or not.
- make install
- cat $sourcedir/foo-bar.pot | grep great >/dev/null
- cat $sourcedir/foo-bar-de.po | grep great >/dev/null
- if cmp $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo >/dev/null; then
- exit 1
- fi
- cat $sourcedir/foo-bar-fr.po | grep great >/dev/null
- if cmp $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo >/dev/null; then
- exit 1
- fi
- cmp $sourcedir/foo-bar-es.pobak $sourcedir/foo-bar-es.po >/dev/null
- cmp $sourcedir/foo-bar-es.mobak $sourcedir/foo-bar-es.mo >/dev/null
+ $MAKE install
+ grep great $sourcedir/foo-bar.pot
+ # NOTE: This is *not* a useless use of cat. The *.po files can contain
+ # non-ASCII characters, which might cause problems with some `grep'
+ # programs. BSD `grep' works from a pipe, but not a seekable file.
+ # GNU or BSD `grep -a' works on files, but is not portable.
+ cat $sourcedir/foo-bar-de.po | grep great
+ cmp $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo && Exit 1
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/foo-bar-fr.po | grep great
+ cmp $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo && Exit 1
+ cmp $sourcedir/foo-bar-es.pobak $sourcedir/foo-bar-es.po
+ cmp $sourcedir/foo-bar-es.mobak $sourcedir/foo-bar-es.mo
# Check that "make dist" updates the POT file, the PO files, and the
# MO files listed in the _LINGUAS variable, regardless whether LINGUAS
cp -p $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo
cp -p $sourcedir/foo-bar-fr.pobak $sourcedir/foo-bar-fr.po
cp -p $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo
- make dist
- cat $sourcedir/foo-bar.pot | grep great >/dev/null
- cat $sourcedir/foo-bar-de.po | grep great >/dev/null
- if cmp $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo >/dev/null; then
- exit 1
- fi
- cat $sourcedir/foo-bar-fr.po | grep great >/dev/null
- if cmp $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo >/dev/null; then
- exit 1
- fi
- cmp $sourcedir/foo-bar-es.pobak $sourcedir/foo-bar-es.po >/dev/null
- cmp $sourcedir/foo-bar-es.mobak $sourcedir/foo-bar-es.mo >/dev/null
+ $MAKE dist
+ grep great $sourcedir/foo-bar.pot
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/foo-bar-de.po | grep great
+ cmp $sourcedir/foo-bar-de.mobak $sourcedir/foo-bar-de.mo && Exit 1
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/foo-bar-fr.po | grep great
+ cmp $sourcedir/foo-bar-fr.mobak $sourcedir/foo-bar-fr.mo && Exit 1
+ cmp $sourcedir/foo-bar-es.pobak $sourcedir/foo-bar-es.po
+ cmp $sourcedir/foo-bar-es.mobak $sourcedir/foo-bar-es.mo
# Check that the updated PO files contain 'previous msgid' fields.
- cat $sourcedir/foo-bar-de.po | grep '^#| msgid "Hello, world\.\\n"$' >/dev/null
- cat $sourcedir/foo-bar-fr.po | grep '^#| msgid "Hello, world\.\\n"$' >/dev/null
+ # NOTE: This is *not* a useless use of cat. See comments above.
+ cat $sourcedir/foo-bar-de.po | grep '^#| msgid "Hello, world\.\\n"$'
+ cat $sourcedir/foo-bar-fr.po | grep '^#| msgid "Hello, world\.\\n"$'
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- rm -f $sourcedir/foo-bar.potbak $sourcedir/*.pobak $sourcedir/*.mobak
- make distclean
+ rm -f $sourcedir/foo-bar.potbak $sourcedir/*.[mp]obak
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
done
+
+:
END
# Check that there is no warning any more.
+$AUTOMAKE -Werror
-AUTOMAKE_run 0 -Werror
+:
# Check that there is no warning any more.
-AUTOMAKE_run 0 -Werror
+$AUTOMAKE -Werror
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/posub/foo-bar.pot
test $builddir = '.' || test ! -f posub/foo-bar.pot
- cat $sourcedir/posub/foo-bar.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/posub/foo-bar.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+:
instdir="`pwd`/instdir"
cd $builddir
$sourcedir/configure --prefix="$instdir"
- make
+ $MAKE
# Check that "make dist" creates the expected .pot file.
# (It is created under $sourcedir, because the .pot file is distributed.
# Cf. the GNU standards, node "Makefile Basics".)
- make dist
+ $MAKE dist
test -f $sourcedir/maude.pot
test $builddir = '.' || test ! -f maude.pot
- cat $sourcedir/maude.pot | grep -v 'POT-Creation-Date' | LC_ALL=C tr -d '\r' > actual
+ grep -v 'POT-Creation-Date' $sourcedir/maude.pot | LC_ALL=C tr -d '\r' > actual
diff actual $sourcedir/expected
rm -f actual
# Sanity check.
- make distcheck
+ $MAKE distcheck
# Clean up.
- make distclean
+ $MAKE distclean
rm -rf "$instdir"
cd $sourcedir
done
+
+: