]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
Fixlets for internationalization tests.
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 6 Sep 2010 12:32:30 +0000 (14:32 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 7 Sep 2010 10:37:32 +0000 (12:37 +0200)
* 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.

25 files changed:
ChangeLog
tests/pot-copyright.test
tests/pot-download1.test
tests/pot-empty.test
tests/pot-enable1.test
tests/pot-enable2.test
tests/pot-format-csharp1.test
tests/pot-format-java1.test
tests/pot-format-java2.test
tests/pot-format-qt1.test
tests/pot-format-tcl1.test
tests/pot-linguas.test
tests/pot-macro-warn.test
tests/pot-msgidbugs.test
tests/pot-no-linguas.test
tests/pot-noinst.test
tests/pot-override1.test
tests/pot-samedir.test
tests/pot-topsrcdir.test
tests/pot-warn1.test
tests/pot-warn2.test
tests/pot-xgettext1.test
tests/pot-xgettext2.test
tests/pot-xgettext3.test
tests/pot-xgettext4.test

index ef24a5d1e32936859f92f7a7d58bb74affb1a5ad..0246cbf6b62c19010dc210f6328c1f499ad68395 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,43 @@
 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.
index e4f9ff2e544cd8323cfa41194106b3bdd78e890f..fb11367d61cc565ad6e1db2a17a5833564e423cd 100755 (executable)
@@ -82,13 +82,13 @@ for builddir in . sub; do
   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
@@ -97,10 +97,12 @@ for builddir in . sub; do
   rm -f actual
 
   # Sanity check.
-  make distcheck
+  $MAKE distcheck
 
   # Clean up.
-  make distclean
+  $MAKE distclean
   rm -rf "$instdir"
   cd $sourcedir
 done
+
+:
index a70845ba8aafbfc6b7c1956f1a7cb38197ca32ee..01aead1709ff7dd88553192efb49159653540178 100755 (executable)
@@ -16,7 +16,6 @@
 
 # Check the download of translations from the Translation Project.
 
-required='gzip'
 . ./defs || Exit 1
 
 set -e
@@ -57,26 +56,26 @@ for builddir in . sub; do
   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
+
+:
index 09bca2bc1b3a78632df3ff2dfb35515ab3d2f385..46611aa201bcf3fe7f90574edc1f42f423a8377b 100755 (executable)
@@ -57,13 +57,13 @@ for builddir in . sub; do
   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
@@ -72,10 +72,12 @@ for builddir in . sub; do
   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
+
+:
index 77b154da3e48b54ea35bddad844ae75cba7bb863..ff98d8326f138a6512fae7fdc6a0754cd25785cb 100755 (executable)
@@ -23,6 +23,7 @@
 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:
@@ -39,14 +40,16 @@ $AUTOMAKE -a
 $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
+
+:
index 02bde5be4c01f8a9e5f54aa404ebd44f154632e6..31ab56b1c77fb522c52565925ad7d83233a4725a 100755 (executable)
@@ -23,6 +23,7 @@
 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:
@@ -39,14 +40,16 @@ $AUTOMAKE -a
 $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
+
+:
index 8c7f6c7d965eab35016eabf05876a687dcbd02c0..1daf13f68e3d2df8fc5e5f2c381173ceded01c9c 100755 (executable)
@@ -16,7 +16,6 @@
 
 # Check the creation of compiled message catalogs in C# format.
 
-required='gzip'
 . ./defs || Exit 1
 
 set -e
@@ -125,18 +124,18 @@ for builddir in . sub; do
     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
 
@@ -171,11 +170,11 @@ for builddir in . sub; do
 
     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
 
@@ -191,33 +190,25 @@ for builddir in . sub; do
     # 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
+
+:
index 6a9259b433f9437d13cc0f2d713c1f44c2e3dc66..e148d43b7b3554cd04549525f36a3ecb79c66745 100755 (executable)
@@ -18,7 +18,6 @@
 # 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
@@ -126,18 +125,18 @@ for builddir in . sub; do
     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
 
@@ -172,11 +171,11 @@ for builddir in . sub; do
 
     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
 
@@ -192,33 +191,25 @@ for builddir in . sub; do
     # 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
+
+:
index e05d08ca7a0329d548083ee2a8907886cccd1ca2..ef60cf7fa9292279d52b50976c63fc8f9bc80ca8 100755 (executable)
@@ -18,7 +18,6 @@
 # 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
@@ -126,18 +125,18 @@ for builddir in . sub; do
     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
 
@@ -172,11 +171,11 @@ for builddir in . sub; do
 
     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
 
@@ -192,33 +191,25 @@ for builddir in . sub; do
     # 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
+
+:
index 797a3472e80da3d36a819b290f75afec1528e67a..ca6da0bc888f5e65363527192fc417ebaa16d4df 100755 (executable)
@@ -150,18 +150,18 @@ for builddir in . sub; do
     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
 
@@ -194,11 +194,11 @@ for builddir in . sub; do
 
     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
 
@@ -212,33 +212,25 @@ for builddir in . sub; do
     # 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
+
+:
index 109245e040fdb5bb3323ba2d1178404b5f06faf1..284b1ce1b13cf356883474a480f4697dd3753ca9 100755 (executable)
@@ -16,7 +16,6 @@
 
 # Check the creation of compiled message catalogs in Tcl format.
 
-required='gzip'
 . ./defs || Exit 1
 
 set -e
@@ -121,18 +120,18 @@ for builddir in . sub; do
     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
 
@@ -167,11 +166,11 @@ for builddir in . sub; do
 
     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
 
@@ -187,33 +186,25 @@ for builddir in . sub; do
     # 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
+
+:
index 428152b09761fd412593692b8c0abcc367890226..dd7bc94816d481dc3d74b827ecec43abb0003cb4 100755 (executable)
@@ -22,7 +22,6 @@
 # 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
@@ -132,7 +131,7 @@ for builddir in . sub; do
     instdir="`pwd`/instdir"
     cd $builddir
     env $config_options $sourcedir/configure --prefix="$instdir"
-    make
+    $MAKE
 
     cat > $sourcedir/src/main.c << 'END'
 #include <stdio.h>
@@ -148,11 +147,11 @@ END
     # (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
 
@@ -177,11 +176,11 @@ END
 
     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
 
@@ -193,16 +192,12 @@ END
     # 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.
@@ -224,30 +219,31 @@ END
     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
@@ -257,30 +253,31 @@ END
     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
+
+:
index 41fb35f529bbd0af4f45494f031dec366d21923c..caecab42f01fbc5e67a5e5b7052ded6a5389497b 100755 (executable)
@@ -50,5 +50,6 @@ END
 $ACLOCAL
 
 # Check that there is no warning any more.
+$AUTOMAKE -Werror
 
-AUTOMAKE_run 0 -Werror
+:
index 1bf53341985922a4bec14baebb0477512eba97d1..3b3b954ee91dfc6196e9ba7a66ee5c3a7d7d61d6 100755 (executable)
@@ -85,13 +85,13 @@ for builddir in . sub1; do
   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
@@ -100,10 +100,10 @@ for builddir in . sub1; do
   rm -f actual
 
   # Sanity check.
-  make distcheck
+  $MAKE distcheck
 
   # Clean up.
-  make distclean
+  $MAKE distclean
   rm -rf "$instdir"
   cd $sourcedir
 done
@@ -148,25 +148,27 @@ for builddir in . sub2; do
   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
+
+:
index f64588ade568ad0ea72c58a78d8d1f6a8e5ca4c4..86039d82ddb7766d7cc6c34a80afe76170b2ad19 100755 (executable)
@@ -102,7 +102,7 @@ for builddir in . sub; do
   instdir="`pwd`/instdir"
   cd $builddir
   $sourcedir/configure --prefix="$instdir"
-  make
+  $MAKE
 
   cat > $sourcedir/src/main.c << 'END'
 #include <stdio.h>
@@ -117,11 +117,11 @@ END
   # (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
 
@@ -129,11 +129,11 @@ END
 
   # 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
 
@@ -153,24 +153,26 @@ END
 
   # 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
+
+:
index 9c1c9225a5da82eaa9957a05e57a930975340481..047a3282d575bab6c0bb9bf6f9f1399d28e72aa3 100755 (executable)
@@ -19,7 +19,6 @@
 # configure time has no effect. Otherwise, everything is the same as in the
 # pot-linguas test.
 
-required='gzip'
 . ./defs || Exit 1
 
 set -e
@@ -129,7 +128,7 @@ for builddir in . sub; do
     instdir="`pwd`/instdir"
     cd $builddir
     env $config_options $sourcedir/configure --prefix="$instdir"
-    make
+    $MAKE
 
     cat > $sourcedir/src/main.c << 'END'
 #include <stdio.h>
@@ -143,7 +142,7 @@ END
     # 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
@@ -159,11 +158,11 @@ END
     # (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
 
@@ -175,16 +174,12 @@ END
     # 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.
@@ -206,53 +201,57 @@ END
     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
+
+:
index 6389f545ebf5c80b310bccf78930f9b962ffe84f..bf51b88027ecac0fe058f91c8201885f4b64879e 100755 (executable)
@@ -79,7 +79,7 @@ for builddir in . sub; do
   instdir="`pwd`/instdir"
   cd $builddir
   $sourcedir/configure --prefix="$instdir"
-  make
+  $MAKE
 
   cat > $sourcedir/src/main.c << 'END'
 #include <stdio.h>
@@ -94,7 +94,7 @@ END
   # (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
@@ -104,7 +104,7 @@ END
 
   # 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
@@ -122,24 +122,26 @@ END
 
   # 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
+
+:
index 900be4fe190288dce6cc9e061eb76ec2f6aae158..6c321a96a1e093064a2288b8f5e01be8213fbc8b 100755 (executable)
@@ -16,7 +16,6 @@
 
 # Check that different .pot files in the same directory don't collide.
 
-required='gzip'
 . ./defs || Exit 1
 
 set -e
@@ -158,23 +157,23 @@ for builddir in . sub; do
   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
 
@@ -192,42 +191,35 @@ for builddir in . sub; do
   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
+
+:
index 7236eb543d461f4da3829739580b7909a09b3f63..442ea56350742ff63be6fec31b21d156ce935838 100755 (executable)
@@ -20,7 +20,6 @@
 # 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
@@ -129,7 +128,7 @@ for builddir in . sub; do
     instdir="`pwd`/instdir"
     cd $builddir
     env $config_options $sourcedir/configure --prefix="$instdir"
-    make
+    $MAKE
 
     cat > $sourcedir/src/main.c << 'END'
 #include <stdio.h>
@@ -145,11 +144,11 @@ END
     # (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
 
@@ -174,11 +173,11 @@ END
 
     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
 
@@ -190,16 +189,12 @@ END
     # 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.
@@ -221,30 +216,31 @@ END
     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
@@ -254,30 +250,31 @@ END
     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
+
+:
index 2c79fb697ff233977906c16fc6dc189f2dc223d3..d69f3f392f81561ba3f8e0b19d49087c36596b5b 100755 (executable)
@@ -47,5 +47,6 @@ posub_foo_bar_pot_SOURCES =
 END
 
 # Check that there is no warning any more.
+$AUTOMAKE -Werror
 
-AUTOMAKE_run 0 -Werror
+:
index 605655a7e2d1c4978371ab6da509ca9f68bfc0fe..724930b39fe41d0be4301133ad926f65e369928f 100755 (executable)
@@ -46,4 +46,6 @@ END
 
 # Check that there is no warning any more.
 
-AUTOMAKE_run 0 -Werror
+$AUTOMAKE -Werror
+
+:
index d6cffcc466ad4fdd75a68e03ffaf1752cc7f7d14..740968576a498d6ea72fd984caf1ac0358aaf696 100755 (executable)
@@ -82,25 +82,27 @@ for builddir in . sub; do
   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
+
+:
index 0c6e326513489394539a1c5ae74ad12484003909..d7b81b0e9af787c83a6e514e7ee7ffa088de1476 100755 (executable)
@@ -82,25 +82,27 @@ for builddir in . sub; do
   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
+
+:
index 285646f5066f08d63627e8d245645e2f5e7610a7..65d2deaca604e922fcca5e1fe7b50932347d9173 100755 (executable)
@@ -97,25 +97,27 @@ for builddir in . sub; do
   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
+
+:
index a170525bd5bac7b299ab9bf708491b9b47026993..6fd1cd4e03ead6e55c8735d7e5c942aadfd4733a 100755 (executable)
@@ -92,25 +92,27 @@ for builddir in . sub; do
   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
+
+: