+2011-07-18 Stefano Lattarini <stefano.lattarini@gmail.com>
+
+ tests: fix typos, grammaros and other blunders in comments
+ All affected files changed.
+
2011-07-16 Stefano Lattarini <stefano.lattarini@gmail.com>
test defs: new subroutine 'seq_', simulating GNU seq(1)
targets='all install-exec install-data uninstall'
echo "$targets:" | sed -e 's/[ :]/-local&/g' > Makefile.am
-cat Makefile.am # might be useful for debugging
+cat Makefile.am # For debugging.
$ACLOCAL
$AUTOMAKE
for target in $targets; do
- grep "${target}-local" Makefile.in # might be useful for debugging
+ grep "${target}-local" Makefile.in # For debugging.
grep "${target}-am:.*${target}-local" Makefile.in
done
$AUTOMAKE
./configure
-# make distdir should fail because NEWS does not mention 1.0a
+# "make distdir" should fail because NEWS does not mention 1.0a
$MAKE check 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
grep 'NEWS not updated' stderr
foo2 += $(foo3)
foo3 = -Wno-error
bar = -Wportability
-## This will give a warning with `-Wportability'
+# This will give a warning with `-Wportability'.
zardoz :=
-## This would give a warning with `-Woverride'.
+# This would give a warning with `-Woverride'.
install:
END
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Make sure `ar-lib' wraps the Microsoft Library Manager (lib) correctly
+# Make sure `ar-lib' wraps the Microsoft Library Manager (lib) correctly.
required=xsi-lib-shell
. ./defs || Exit 1
chmod +x ./lib
-# Check if ar-lib can create an archive with "cr"
+# Check if ar-lib can create an archive with "cr".
opts=`./ar-lib ./lib cr foo.lib foo.obj`
test x"$opts" = x"lib -NOLOGO -OUT:foo.lib foo.obj"
-# Check if ar-lib can update an existing archive with "r"
+# Check if ar-lib can update an existing archive with "r".
touch foo.lib
opts=`./ar-lib ./lib r foo.lib foo.obj`
test x"$opts" = x"lib -NOLOGO -OUT:foo.lib foo.lib foo.obj"
opts=`./ar-lib ./lib r foo.lib @list`
test x"$opts" = x"lib -NOLOGO -OUT:foo.lib foo.lib @list"
-# Check if ar-lib can delete a member from an archive with "d"
+# Check if ar-lib can delete a member from an archive with "d".
opts=`./ar-lib ./lib d foo.lib foo.obj`
test x"$opts" = x"lib -NOLOGO -REMOVE:foo.obj foo.lib"
-# Check if ar-lib can delete members in an @FILE
+# Check if ar-lib can delete members in an @FILE.
echo foo.obj > foolist
opts=`./ar-lib ./lib d foo.lib @foolist`
test x"$opts" = x"lib -NOLOGO -REMOVE:foo.obj foo.lib"
-# Check if ar-lib can list archive members with "t"
+# Check if ar-lib can list archive members with "t".
opts=`./ar-lib ./lib t foo.lib`
test x"$opts" = x"lib -NOLOGO -LIST foo.lib"
-# Check if ar-lib can extract archive members with "x"
+# Check if ar-lib can extract archive members with "x".
touch fake.lib
opts=`./ar-lib ./lib x fake.lib`
test x"$opts" = x"lib -NOLOGO -EXTRACT:fake.obj fake.lib"
-# Check if ar-lib can extract specified archive members with "x"
+# Check if ar-lib can extract specified archive members with "x".
opts=`./ar-lib ./lib x foo.lib foo.obj`
test x"$opts" = x"lib -NOLOGO -EXTRACT:foo.obj foo.lib"
-# Check if ar-lib can extract members in an @FILE
+# Check if ar-lib can extract members in an @FILE.
opts=`./ar-lib ./lib x foo.lib @foolist`
test x"$opts" = x"lib -NOLOGO -EXTRACT:foo.obj foo.lib"
-# Check if ar-lib passes -lib and -LTCG through to the wrappee
+# Check if ar-lib passes -lib and -LTCG through to the wrappee.
opts=`./ar-lib ./lib -lib -LTCG x foo.lib foo.obj`
test x"$opts" = x"lib -lib -LTCG -NOLOGO -EXTRACT:foo.obj foo.lib"
-# Check if ar-lib can extract backslashed members
+# Check if ar-lib can extract backslashed members.
touch fake2.lib
opts=`./ar-lib ./lib x fake2.lib`
test x"$opts" = x"lib -NOLOGO -EXTRACT:dir\\fake2.obj fake2.lib"
AUTOMAKE_fails --voo
grep 'unrecognized option.*--voo' stderr
-# older perl has a buggy Getopt::Long which makes this fail.
+# Older perl has a buggy Getopt::Long which makes this fail.
if $PERL -e 'require 5.8.2;'; then
AUTOMAKE_fails -- --voo
grep 'input file.*--voo' stderr
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test usage of AM_INIT_AUTOMAKE with two ot three arguments, for
+# Test usage of AM_INIT_AUTOMAKE with two or three arguments, for
# backward-compatibility.
. ./defs || Exit 1
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
END
- cat configure.in # might be useful for debugging
+ cat configure.in # For debugging.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
AM_INIT_AUTOMAKE([pkgname], [pkgversion], [$am_arg3])
AC_OUTPUT
END
- cat configure.in # might be useful for debugging
+ cat configure.in # For debugging.
$AUTOCONF
./configure
- cat config.h # might be useful for debugging
+ cat config.h # For debugging.
# The non-empty third argument should prevent PACKAGE and VERSION
# from being AC_DEFINE'd.
$EGREP 'pkg(name|version)' config.h && Exit 1
AM_INIT_AUTOMAKE([pkgname], [pkgversion]$am_extra_args)
AC_OUTPUT
END
- cat configure.in # might be useful for debugging
+ cat configure.in # For debugging.
$AUTOCONF
./configure
- cat config.h # might be useful for debugging
+ cat config.h # For debugging.
grep '^ *# *define *PACKAGE *"pkgname" *$' config.h
grep '^ *# *define *VERSION *"pkgversion" *$' config.h
done
### Run 2 ###
cat > configure.in <<'END'
-dnl# `AC_INIT' in Autoconf <= 2.63 doesn't have an URL argument.
-dnl# Luckily, `AC_AUTOCONF_VERSION' and `m4_version_prereq' are
-dnl# both present in autoconf 2.62, which we require; so that we
-dnl# can at least use the following workaround.
+dnl: `AC_INIT' in Autoconf <= 2.63 doesn't have an URL argument.
+dnl: Luckily, `AC_AUTOCONF_VERSION' and `m4_version_prereq' are
+dnl: both present in autoconf 2.62, which we require; so that we
+dnl: can at least use the following workaround.
m4_version_prereq([2.64],
[AC_INIT([ac_name], [ac_version], [ac_bugreport], [ac_tarname],
[ac_url])],
: > foo3.in
: > sub/bar.in
-ls -l # might be useful for debugging
+ls -l # For debugging.
for args in \
'foo' \
AC_CONFIG_FILES([$args])
AC_OUTPUT
END
- cat configure.in # for debugging
+ cat configure.in # For debugging.
$ACLOCAL
$AUTOMAKE Makefile
mv -f Makefile.in Makefile.acf
AM_INIT_AUTOMAKE
AC_OUTPUT([$args])
END
- cat configure.in # for debugging
+ cat configure.in # For debugging.
$ACLOCAL
$AUTOMAKE Makefile
mv -f Makefile.in Makefile.aco
# Yuck!
cat > configure.in <<'END'
-dnl. Everything here is *deliberately* underquoted!
+dnl: Everything here is *deliberately* underquoted!
AC_INIT(src/foo.input)
AM_INIT_AUTOMAKE(foo, 1.0)
AC_CONFIG_FILES(Makefile:mkfile.in)
$AUTOMAKE
./configure
-ls -l . hacky src data tests # useful for debugging
+ls -l . hacky src data tests # For debugging.
test ! -f mkfile
$MAKE
$MAKE distdir
test -f $distdir.tar.gz
chmod a-x tests/a.test
-# dist-hook should take care of making test files executables
+# dist-hook should take care of making test files executables.
$MAKE distcheck
:
# Anyone doing something like this in a real-life package probably
# deserves to be killed.
cat > configure.in <<'END'
-dnl. Everything here is *deliberately* underquoted!
+dnl: Everything here is *deliberately* underquoted!
AC_INIT(quux.c)
PACKAGE=nonesuch-zardoz
VERSION=nonesuch-0.1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure we diagnose trailing backslash at the end of a file.
-# Report from Akim Demaile <akim@epita.fr>
+# Report from Akim Demaile <akim@epita.fr>.
. ./defs || Exit 1
grep '^check-TESTS:' Makefile.in
grep 'check-DEJAGNU' Makefile.in && Exit 1
-# check-TESTS is phony.
+# 'check-TESTS' is phony.
sed -n '/^\.PHONY:/,/^$/p' Makefile.in | $EGREP '(^| )check-TESTS($| )'
-# check should depend directly on check-am (similar tests are
+# 'check' should depend directly on 'check-am' (similar tests are
# in check2.test and check3.test).
$EGREP '^check:.* check-am( |$)' Makefile.in
grep '^PASS: subrun\.sh *$' stdout
grep 'PASS.*echo\.sh' stdout && Exit 1
-# check should depend directly on check-am (similar tests are
+# 'check' should depend directly on 'check-am' (similar tests are
# in check.test and check3.test).
$EGREP '^check:.* check-recursive( |$)' Makefile.in
$EGREP '^check:.* check-am( |$)' dir/Makefile.in
grep '^FAIL: fail\.sh *$' stdout
grep '^PASS: ok\.sh *$' stdout
-# should also works when -k is not in first position
+# Should also works when -k is not in first position.
$MAKE -s -k check >stdout || :
cat stdout
grep '^FAIL: fail\.sh *' stdout
grep '^[^X]*PASS.* sub/bar' stdout
grep '^[^X]*FAIL.* baz' stdout
grep 'XFAIL.* sub/baz' stdout
-# parallel-tests should not add circular dependencies.
+# `parallel-tests' should not add circular dependencies.
# Look for known warnings from a couple of `make' implementations.
grep -i 'circular.*dependency' stderr && Exit 1
grep -i 'graph cycles' stderr && Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure distclean works in cygnus mode.
-# Report from Daniel Jacobowitz
+# Report from Daniel Jacobowitz.
. ./defs || Exit 1
$AUTOCONF
./configure
-test -f Makefile # sanity check
+test -f Makefile # Sanity check.
$MAKE dummy
# Again, make sure that the generated Makefile do not unduly
testmk:
grep '$str' Makefile
END
-$MAKE Makefile # for non-GNU make
+$MAKE Makefile # For non-GNU make.
$MAKE testam testin testmk
$MAKE distcheck
$AUTOCONF
./configure
-test -f Makefile # sanity check
+test -f Makefile # Sanity check.
$MAKE dummy
# Again, make sure that the generated Makefile do not unduly
END
echo "# $str2" >> two.in
echo "# $str3" >> three.in
-$MAKE Makefile # for non-GNU make
+$MAKE Makefile # For non-GNU make.
$MAKE testam testin testmk test2 test3
$MAKE distcheck
./configure
-grep '=GrEpMe_am=' Makefile && Exit 1 # sanity check
-grep '=GrEpMe_dep=' Makefile && Exit 1 # likewise
+grep '=GrEpMe_am=' Makefile && Exit 1 # Sanity check.
+grep '=GrEpMe_dep=' Makefile && Exit 1 # Likewise.
$MAKE test-distcommon
$MAKE test-distdir
echo '# =GrEpMe_am=' >> Makefile.am
echo '# =GrEpMe_dep=' >> Makefile.dep
-$MAKE Makefile # for non-GNU make
+$MAKE Makefile # For non-GNU make.
$MAKE test-grep
$MAKE test-distcommon
$MAKE test-distdir
$srcdir/configure
- test -f demo/version.good # sanity check
- test ! -s demo/version.good # likewise
+ test -f demo/version.good # Sanity check.
+ test ! -s demo/version.good # Likewise.
cd demo
# Makefile should not depend on version.gin.
rm -f ../$srcdir/demo/version.gin
$MAKE Makefile
- test ! -r ../$srcdir/demo/version.gin # sanity check
+ test ! -r ../$srcdir/demo/version.gin # Sanity check.
# version.good should depend on version.gin.
rm -f version.good
# Try to verify that we errored out for the right reason.
$FGREP version.gin output
- cd .. # back in top builddir
+ cd .. # Back in top builddir.
cd $srcdir
# Re-create it for the next pass (if any).
$ACLOCAL
$AUTOMAKE
-grep TEX Makefile.in # for debugging
+grep TEX Makefile.in # For debugging.
grep '^TEXINFO_TEX *= *tex/texinfo\.tex *# some comment w/ a slash *$' Makefile.in
$AUTOCONF
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test for bug in conditionals.
-# Report from Robert Boehne
+# Report from Robert Boehne.
. ./defs || Exit 1
# Test for bug in conditionals in SOURCES with variable substitution
# references.
-# Report from Richard Boulton
+# Report from Richard Boulton.
. ./defs || Exit 1
# Test for being able to define an object to be generated in different ways
# according to a conditional.
-# Report from Richard Boulton
+# Report from Richard Boulton.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Regression test for substitution references to conditional variables.
-# Report from Richard Boulton
+# Report from Richard Boulton.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Regression test for substitution references to conditional variables.
-# Report from Richard Boulton
+# Report from Richard Boulton.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that conditional redefinitions of AC_SUBST'ed variables are detected.
-# Report from Patrik Weiskircher
+# Report from Patrik Weiskircher.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that conditional redefinitions of AC_SUBST'ed variables are detected.
-# Report from Patrik Weiskircher
+# Report from Patrik Weiskircher.
. ./defs || Exit 1
# Check that conditionally-defined install directories are handled
# correctly.
-# Report from Ralf Corsepius
+# Report from Ralf Corsepius.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check for _DEPENDENCIES definition with conditional _LDADD.
-# Report from Elena A. Vengerova
+# Report from Elena A. Vengerova.
. ./defs || Exit 1
SUBDIRS += bar
endif
-# Small example from the manual
+# Small example from the manual.
bin_PROGRAMS = hello
hello_SOURCES = hello-common.c
if COND1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test for bug with conditional library.
-# From Harlan Stenn
+# From Harlan Stenn.
. ./defs || Exit 1
test: distdir
test -f $(distdir)/config.h.in
test -f $(distdir)/include/config.h.in.in
- : # Solaris Sh does not support 'test -e'
+ : # Solaris Sh does not support 'test -e'.
test ! -f $(distdir)/include/config.h.in
test ! -r $(distdir)/include/config.h.in
END
$sleep
echo '#undef @FOO@' > include/config.h.in.in
$MAKE include/config.h
-# Don't try to be too strict in this grepping, since the substutition
+# Don't try to be too strict in this grepping, since the substitution
# is done by config.status, and we don't have too much control on it.
grep '/\*.*#undef.*NameToBeGrepped' include/config.h
$MAKE test
test ! -r $(distdir)/dest3
test ! -r $(distdir)/dest2
test -f $(distdir)/src2
-## src3 cannot be distributed, Automake knows nothing about it
+## src3 cannot be distributed, Automake knows nothing about it.
test ! -r $(distdir)/sdir/src3
test ! -r $(distdir)/src3
END
my_dest=dest
AC_CONFIG_LINKS([sdir/dest2:src2 sdir/dest3:$my_src_dir/src3])
AC_CONFIG_LINKS([$my_dest:src])
-# the following is a link whose source is itself a link
+# The following is a link whose source is itself a link.
AC_CONFIG_LINKS([dest4:sdir/dest2])
# Some package prefer to compute links.
cmplink='dest5:src';
test ! -r sdir/dest2
test ! -r sdir/dest3
test -r dest # Should still exist, Automake knows nothing about it.
-test -r dest5 # ditto
+test -r dest5 # Ditto.
rm -f dest dest5
test ! -r dest4
$MAKE check
test -f check-target-has-run
test ! -r all-target-has-failed
-# sanity checks
+# Sanity checks.
$MAKE && Exit 1
test -f all-target-has-failed
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure depcomp is installed and found properly
-# when required for multiple directories
+# when required for multiple directories.
. ./defs || Exit 1
$AUTOMAKE --add-missing
# There used to be a bug where this was created in the first subdir with C
-# sources in it instead of in $top_srcdir or $ac_auxdir
+# sources in it instead of in $top_srcdir or $ac_auxdir.
test -f depcomp
:
$AUTOCONF
$AUTOMAKE -a
-# Sanity check: make sure the cache variable we force is used by configure
+# Sanity check: make sure the cache variable we force is used by configure.
grep am_cv_CC_dependencies_compiler_type configure
./configure am_cv_CC_dependencies_compiler_type=dashmstdout
$AUTOCONF
$AUTOMAKE -a
-# Sanity check: make sure the cache variable we force is used by configure
+# Sanity check: make sure the cache variable we force is used by configure.
grep am_cv_CC_dependencies_compiler_type configure
./configure am_cv_CC_dependencies_compiler_type=makedepend
$ACLOCAL
$AUTOMAKE -a
-grep include Makefile.in # for debugging
+grep include Makefile.in # For debugging.
grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.in
grep 'include.*/\./\$(DEPDIR)' Makefile.in && Exit 1
$ACLOCAL
$AUTOMAKE -a
-grep include Makefile.in # for debugging
+grep include Makefile.in # For debugging.
grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
grep 'include.*[^a-zA-Z0-9_/]sub/\$(DEPDIR)/bar\.P' Makefile.in
$EGREP 'include.*/(\.|sub)/\$\(DEPDIR\)' Makefile.in && Exit 1
$ACLOCAL
$AUTOMAKE -a
-grep include Makefile.in # for debugging
+grep include Makefile.in # For debugging.
grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
grep 'include.*\./\$(DEPDIR)/bar\.P' Makefile.in
grep 'include.*/\./\$(DEPDIR)' Makefile.in && Exit 1
$ACLOCAL
$AUTOMAKE -a
-grep include Makefile.in # for debugging
+grep include Makefile.in # For debugging.
grep 'include.*\./\$(DEPDIR)/foo\.P' Makefile.in
grep 'include.*[^a-zA-Z0-9_/]sub/\$(DEPDIR)/bar\.P' Makefile.in
$EGREP 'include.*/(\.|sub)/\$\(DEPDIR\)' Makefile.in && Exit 1
# Test to make sure dependency tracking works with
# --disable-dependency-tracking.
-# Report from Robert Boehne
+# Report from Robert Boehne.
required=cc
. ./defs || Exit 1
$am_init_automake
AC_CONFIG_FILES([Makefile])
END
- cat configure.in # might be useful for debugging
+ cat configure.in # For debugging.
$ACLOCAL 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
grep "^configure\\.in:.* $errmsg" stderr
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check dirlist support.
-# This test relies on m4/dirlist
+# This test relies on m4/dirlist.
. ./defs || Exit 1
$ACLOCAL
$AUTOCONF
-# there should be no m4_include in aclocal.m4, even tho m4/dirlist contains
-# `./dirlist-test' as a relative directory. Only -I directories are subject
-# to file inclusion.
+# There should be no m4_include in aclocal.m4, even though m4/dirlist
+# contains `./dirlist-test' as a relative directory. Only -I directories
+# are subject to file inclusion.
grep m4_include aclocal.m4 && Exit 1
grep 'GUILE-VERSION' configure
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check dirlist globbing support.
-# This test relies on m4/dirlist
+# This test relies on m4/dirlist.
. ./defs || Exit 1
$ACLOCAL
$AUTOCONF
-# there should be no m4_include in aclocal.m4, even tho m4/dirlist contains
-# `./dirlist-test' as a relative directory. Only -I directories are subject
-# to file inclusion.
+# There should be no m4_include in aclocal.m4, even though m4/dirlist
+# contains `./dirlist-test' as a relative directory. Only -I directories
+# are subject to file inclusion.
grep m4_include aclocal.m4 && Exit 1
grep 'GUILE-VERSION' configure
n
}' -e 's/$/ /' -e '/^DIST_COMMON =/p' Makefile.in > dc.txt
-cat dc.txt # might be useful for debugging
+cat dc.txt # For debugging.
$FGREP ' compile ' dc.txt
$FGREP ' depcomp ' dc.txt
echo 'I bet you are reading me.' > README
END
-# Files required by --gnu
+# Files required by `--gnu'.
: > NEWS
: > AUTHORS
: > ChangeLog
n
}' -e '/^DIST_COMMON =/ p' Makefile.in > dc.txt
-cat dc.txt # might be useful for debugging
+cat dc.txt # For debugging.
test 1 = `grep tests dc.txt | wc -l`
grep configure dc.txt
extract_distcommon Makefile.in > top.txt
extract_distcommon tests/Makefile.in > inner.txt
-# might be useful for debugging
+# Might be useful for debugging.
cat top.txt
cat inner.txt
n
}' -e 's/$/ /' -e '/^DIST_COMMON =/p' Makefile.in > dc.txt
-cat dc.txt # might be useful for debugging
+cat dc.txt # For debugging.
$FGREP ' compile ' dc.txt
$FGREP ' depcomp ' dc.txt
AC_OUTPUT
END
-echo "me = $me" > Makefile.am # for better failure messages
+echo "me = $me" > Makefile.am # For better failure messages.
cat >> Makefile.am << 'END'
EXTRA_DIST = lnk B/bbb bar1 bar2 bar3 quux
.PHONY: test
$ACLOCAL
$AUTOCONF
-ls -l # for debugging
+ls -l # For debugging.
# Don't try to use "make -k", because some botched make implementations
# (HP-UX, IRIX) might still exit on the first error in this situations.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test of names in tar file.
-# From Rainer Orth
+# From Rainer Orth.
required=cc
. ./defs || Exit 1
$AUTOCONF
./configure
-cat config.h # debug info
+cat config.h # For debugging.
grep '^ */\* *# *undef *WITH_DMALLOC *\*/ *$' config.h
./configure --without-dmalloc
-cat config.h # debug info
+cat config.h # For debugging.
grep '^ */\* *# *undef *WITH_DMALLOC *\*/ *$' config.h
./configure --with-dmalloc
-cat config.h # debug info
+cat config.h # For debugging.
grep '^# *define *WITH_DMALLOC *1 *$' config.h
$MAKE check-with-dmalloc
echo 'AM_CONDITIONAL(FOO, true)' >> configure.in
cat > Makefile.am << 'END'
-# flag to tell us if apache dir is a source distribution
+# Flag to tell us if apache dir is a source distribution.
APACHE_DIR_IS_SRC = @APACHE_DIR_IS_SRC@
-# we only need to descend into the c dir if we're doing a 1.3 DSO configuration
+# We only need to descend into the c dir if we're doing a 1.3 DSO
+# configuration.
ifeq ("${APACHE_DIR_IS_SRC}","yes")
SUBDIRS = java
else
$ACLOCAL
AUTOMAKE_fails
-grep 'Makefile.am:7:.*else without if' stderr
+grep '^Makefile\.am:8:.*else without if' stderr
./configure cond=yes
-# hypotheses:
-# EXTRA_*_DEPENDENCIES are honored.
-# conditionals and substitutions are honored.
-# *_DEPENDENCIES are not overwritten by their EXTRA_* counterparts.
+# Hypotheses:
+# - EXTRA_*_DEPENDENCIES are honored.
+# - Conditionals and substitutions are honored.
+# - *_DEPENDENCIES are not overwritten by their EXTRA_* counterparts.
: >foodep
: >foodep2
./configure
-# hypothesis: EXTRA_*_DEPENDENCIES are honored.
+# Hypothesis: EXTRA_*_DEPENDENCIES are honored.
: >foodep
: >foodep2
grep '.\$(FCLINK)' Makefile.in && Exit 1
$AUTOCONF
-# configure may Exit 77 if no compiler is found,
+# ./configure may exit with status 77 if no compiler is found,
# or if the compiler cannot compile Fortran 90 files).
./configure
$MAKE
# Ensure we use --tag for f90, too.
grep " --tag=FC" Makefile.in
-# configure may exit with status 77 if no compiler is found,
+# ./configure may exit with status 77 if no compiler is found,
# or if the compiler cannot compile Fortran 90 files).
./configure
$MAKE
$ACLOCAL
-# po/ and intl/ are required
+# po/ and intl/ are required.
AUTOMAKE_fails --add-missing
grep 'AM_GNU_GETTEXT.*SUBDIRS' stderr
echo 'SUBDIRS = po intl' >Makefile.am
$AUTOMAKE --add-missing
-# Make sure distcheck runs ./configure --with-included-gettext
+# Make sure distcheck runs `./configure --with-included-gettext'.
grep 'with-included-gettext' Makefile.in
# `SUBDIRS = po intl' isn't required if po/ doesn't exist.
echo 'SUBDIRS = po' >Makefile.am
mkdir po
-# if aclocal fails, assume the gettext macros are too old and do not
+# If aclocal fails, assume the gettext macros are too old and do not
# define AM_GNU_GETTEXT_INTL_SUBDIR.
$ACLOCAL || skip_ "your gettext macros are probably too old"
AM_MAINTAINER_MODE
END
-cat configure.in
+cat configure.in # For debugging.
$ACLOCAL
$AUTOCONF --force
./configure --help >stdout || { cat stdout; Exit 1; }
$EGREP '^ *--enable-maintainer-mode( |$)' stdout
$FGREP ' enable make rules' stdout
-rm -rf autom4te*.cache # just to be sure
+rm -rf autom4te*.cache # Just to be sure.
sed 's/\(AM_MAINTAINER_MODE\).*/\1([disable])/' configure.in >t
mv -f t configure.in
-cat configure.in
+cat configure.in # For debugging.
$ACLOCAL
$AUTOCONF --force
./configure --help >stdout || { cat stdout; Exit 1; }
$EGREP '^ *--enable-maintainer-mode( |$)' stdout
$FGREP ' enable make rules' stdout
-rm -rf autom4te*.cache # just to be sure
+rm -rf autom4te*.cache # Just to be sure.
sed 's/\(AM_MAINTAINER_MODE\).*/\1([enable])/' configure.in >t
mv -f t configure.in
-cat configure.in
+cat configure.in # For debugging.
$ACLOCAL
$AUTOCONF --force
./configure --help >stdout || { cat stdout; Exit 1; }
END
cat > Makefile.am <<END
-## so that install-sh will be required
+# So that install-sh will be required.
pkgdata_DATA =
END
ACLOCAL=$original_ACLOCAL
AUTOMAKE=$original_AUTOMAKE
-escape_dots () { sed 's/\./\\./g'; } # avoid issues with `\' in backquotes
+escape_dots () { sed 's/\./\\./g'; } # Avoid issues with `\' in backquotes.
apiversion_rx=`echo "$APIVERSION" | escape_dots`
$ACLOCAL --version --help >stdout || { cat stdout; Exit 1; }
AC_INIT$ac_init_args
AM_INIT_AUTOMAKE$am_init_args
END
- cat configure.in # might be useful for debugging
+ cat configure.in # For debugging.
# The error message should mention AC_INIT, not AC_PACKAGE_VERSION.
($ACLOCAL && $AUTOCONF) 2>stderr && { cat stderr >&2; Exit 1; }
cat stderr >&2
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Various install-sh checks
+# Various install-sh checks.
. ./defs || Exit 1
get_shell_script install-sh
-# Basic errors
+# Basic errors.
./install-sh && Exit 1
./install-sh -m 644 dest && Exit 1
-# Directories
+# Directories.
# It should be OK to create no directory. We sometimes need
# this when directory are conditionally defined.
test -d d2
test -d d3
test -d d4
-# Subdirectories
+# Subdirectories.
./install-sh -d p1/p2/p3 p4//p5//p6//
test -d p1/p2/p3
test -d p4/p5/p6
./install-sh -m 644 y z
test -f y
test -f z
-# Multiple files
+# Multiple files.
./install-sh -m 644 -c x z d1
test -f x
test -f z
# "make check" should compile files in $(check_JAVA) ...
$MAKE check
-ls -l # for debugging
+ls -l # For debugging.
test -f One.class
test -f Two.class
# ... but should *not* install them.
test -f foo.c
$MAKE distclean
test -f foo.c
-./configure # we must re-create `Makefile'
+./configure # Re-create `Makefile'.
$MAKE maintainer-clean
test ! -f foo.c
cd sub
../configure
. ./lexoutroot
-test -n "$LEX_OUTPUT_ROOT" # sanity check
+test -n "$LEX_OUTPUT_ROOT" # Sanity check.
cd ..
flex lexer.l
# Check that $(LFLAGS) takes precedence over both $(AM_LFLAGS) and
# $(foo_LFLAGS).
# Please keep this in sync with the sister tests lflags2.test, yflags.test
-# and yflags2.test
+# and yflags2.test.
required=cc
. ./defs || Exit 1
# Check that $(LFLAGS) takes precedence over both $(AM_LFLAGS) and
# $(foo_LFLAGS).
# Please keep this in sync with the sister tests lflags.test, yflags.test
-# and yflags2.test
+# and yflags2.test.
. ./defs || Exit 1
./configure
$MAKE
-ar t libfoo.a # for debugging
+ar t libfoo.a # For debugging.
$MAKE distcheck
:
# Regression test for an internal error when @LIBOBJS@ is used in
# a variable that is not defined in the same conditions as the _LDADD
# that uses it.
-# Report from Bill Davidson
+# Report from Bill Davidson.
. ./defs || Exit 1
cat >> configure.proto << 'END'
AC_PROG_CC
AC_PROG_RANLIB
-%LIBOBJ-STUFF% # will be activated later
+%LIBOBJ-STUFF% # Will be activated later.
AC_OUTPUT
END
i\
AC_LIBOBJ([maude])
}' configure.proto > configure.in
-cat configure.in # for debugging
+cat configure.in # For debugging.
cat > extra-checks.am << 'END'
extra_checks = maude-src maude-dist maude-lib liver-not-dist
fi\
AC_LIBSOURCES([maude.c, liver.c])
}' configure.proto > configure.in
-cat configure.in # for debugging
+cat configure.in # For debugging.
$ACLOCAL
$AUTOCONF
cat >> configure.proto << 'END'
AC_PROG_CC
AC_PROG_RANLIB
-%LIBOBJ-STUFF% # will be activated later
+%LIBOBJ-STUFF% # Will be activated later.
AC_OUTPUT
END
i\
AC_LIBOBJ(maude) dnl: do not quote this!
}' configure.proto > configure.in
-cat configure.in # for debugging
+cat configure.in # For debugging.
cat > extra-checks.am << 'END'
extra_checks = maude-src maude-dist maude-lib liver-not-dist
AC_LIBSOURCE(maude.c) dnl: do not quote this!\
AC_LIBSOURCE(liver.c) dnl: do not quote this!
}' configure.proto > configure.in
-cat configure.in # for debugging
+cat configure.in # For debugging.
$ACLOCAL
$AUTOCONF
./configure FOO=quux
$MAKE
-ls -l # for debugging
+ls -l # For debugging.
test -f libtu.a
ar t libtu.a | $FGREP quux
ar t libtu.a | $FGREP zardoz && Exit 1
./configure FOO=zardoz
$MAKE
-ls -l # for debugging
+ls -l # For debugging.
test -f libtu.a
ar t libtu.a | $FGREP zardoz
ar t libtu.a | $FGREP quux && Exit 1
grep 'configure\.in:.*required directory.*libobj-dir' stderr
mkdir libobj-dir
-: > foobar.c # oops, it should be in libobj-dir...
+: > foobar.c # Oops, it should be in libobj-dir!
AUTOMAKE_fails
grep 'configure\.in:.*required file.*libobj-dir/foobar.c.*' stderr
rm -f foobar.c
: > libobj-dir/foobar.c
-$AUTOMAKE # now we should succeed
+$AUTOMAKE # Now we should succeed.
:
grep 'configure\.in:.*required directory.*\./libobj-dir' stderr
mkdir libobj-dir
-: > foobar.c # oops, it should be in libobj-dir!
+: > foobar.c # Oops, it should be in libobj-dir!
AUTOMAKE_fails
grep 'configure\.in:.*required file.*libobj-dir/foobar.c.*' stderr
rm -f foobar.c
: > libobj-dir/foobar.c
-$AUTOMAKE # now we should succeed
+$AUTOMAKE # Now we should succeed.
:
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure libtool is removed.
-# Report from Kevin Dalley
+# Report from Kevin Dalley.
required=libtool
. ./defs || Exit 1
./configure
$MAKE test1
-# rm before echo, because COPYING is likely to be a symlink to
+# Use 'rm' before 'echo', because COPYING is likely to be a symlink to
# the real COPYING...
rm -f COPYING
echo 'MY-OWN-LICENSE' >COPYING
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check support for no-dist-gzip with lzip
+# Check support for no-dist-gzip with lzip.
required=lzip
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check support for no-dist-gzip with lzma
+# Check support for no-dist-gzip with lzma.
required=lzma
. ./defs || Exit 1
mkdir bin
cat > bin/help2man <<'END'
#! /bin/sh
-# fake help2man script that lets `missing' think it is not installed
+# Fake help2man script that lets `missing' think it is not installed.
exit 127
END
chmod +x bin/help2man
cd build
../configure
-# sanity check
+# Sanity check.
grep '^HELP2MAN *=.*/missing --run help2man' Makefile
$MAKE
$MAKE distcheck
cd ..
-rm -f *.1 # remove leftover generated manpages
+rm -f *.1 # Remove leftover generated manpages.
./configure
-# sanity check
+# Sanity check.
grep '^HELP2MAN *=.*/missing --run help2man' Makefile
$MAKE
cat > Makefile.am << 'END'
dist_man_MANS = foo.1
foo.1:
-## this 'rm' command will fail if $(srcdir) is unwritable
+## This 'rm' command will fail if $(srcdir) is unwritable.
rm -f $(srcdir)/$@
: > $(srcdir)/$@
END
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test to make sure that mdate-sh is added to the right directory.
-# Report from Kevin Dalley
+# Report from Kevin Dalley.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# test how well `missing' finds output file names of various tools.
+# Test how well `missing' finds output file names of various tools.
# PR automake/483.
. ./defs || Exit 1
get_shell_script missing
-# these programs may be invoked by `missing'
+# These programs may be invoked by `missing'.
needed_tools='chmod find sed test touch'
needed_tools_csep=`echo $needed_tools | sed 's/ /, /g'`
LDADD = @LEXLIB@
END
-# The point of this test is that it is not dependent on a working lex or yacc.
+# The point of this test is that it is not dependent on a working lex
+# or yacc.
cat > joe.c <<EOF
int joe (int arg)
{
chmod +x myyacc.sh mylex.sh
PATH="`pwd`$PATH_SEPARATOR$PATH"
-# make maintainer-clean; ./configure; make should always work,
+# "make maintainer-clean; ./configure; make" should always work,
# per GNU Standard.
$MAKE maintainer-clean
./configure
nobase_my_PYTHON = two.py sub/nobase.py
test-install-data: install-data
- find inst -print; : for debugging
+ find inst -print; : For debugging.
test -f inst/my/one.py
test -f inst/my/one.pyc
test -f inst/my/two.py
notrans_dist_man2_MANS = z-bar.man z-bar2.man
notrans_nodist_man1_MANS = z-baz.man z-baz2.man
-# These two are ignored
+# These two are ignored.
dist_notrans_man_MANS = nosuch.8
nodist_notrans_man9_MANS = nosuch.man
cat obs >> configure.in
$PERL -ne 'chomp; print "grep $_ output || Exit 1\n"; ' obs > obs.1
$PERL -ne 'chomp; print "grep $_ configure.in && Exit 1\n"; ' obs > obs.2
-echo : >> obs.1 # since it will be sourced, it must and with a success
-echo : >> obs.2 # ditto
+echo : >> obs.1 # Since it will be sourced, it must end with a success.
+echo : >> obs.2 # Likewise.
-cat configure.in # for debugging
-cat obs.1 # ditto
-cat obs.2 # ditto
+cat configure.in # For debugging.
+cat obs.1 # Likewise.
+cat obs.2 # Likewise.
# Sanity check. Make sure we have added something to configure.in.
test `wc -l <configure.in` -gt 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check for support for colon separated input files in AC_CONFIG_FILES
+# Check for support for colon-separated input files in AC_CONFIG_FILES.
. ./defs || Exit 1
$ACLOCAL
$AUTOMAKE -Wno-override
AUTOMAKE_fails
-grep ':.*install-local' stderr && Exit 1 # There is no such thing as install-local
+# There is no such thing as `install-local'.
+grep ':.*install-local' stderr && Exit 1
grep ':.*installcheck-local' stderr
grep ':.*html-local' stderr
# Make sure overriding *-am targets suggest using *-local, not *-am.
# This tests:
# 4) warning and normal error output should be identical, in that duplicate
-# warnings should be omitted in the same way as without threads,
+# warnings should be omitted in the same way as without threads.
required=perl-threads
. ./defs || Exit 1
# This tests:
# 3) normal automake output should be identical and ordered in the same way
# with --add-missing, even with concurrent file requirements, and the
-# installation of aux files should be race-free,
+# installation of aux files should be race-free.
required=perl-threads
. ./defs || Exit 1
# Check parallel-tests features:
# - per-extension test drivers (xxx_LOG_COMPILER and xxx_LOG_FLAGS),
# also with AC_SUBST'd stuff.
-# See also related test 'parallel-tests-ext-driver-prog.test'
+# See also related test 'parallel-tests-ext-driver-prog.test'.
parallel_tests=yes
. ./defs || Exit 1
AM_LOG_FLAGS = -a
LOG_FLAGS = -b
-# t-driver is deliberately not distributed; it should be available
+# `t-driver' is deliberately not distributed; it should be available
# in PATH also from "make distcheck".
EXTRA_DIST = $(TESTS) chk-driver test-driver noext-driver
END
cat bla.log
# With the above flag overridden, bla.t should fail ...
$EGREP '(^ *|/)t-driver:.* invalid .*--bad' bla.log
-# ... but no oher test should.
+# ... but no other test should.
grep -v '^FAIL: bla\.t ' bla.log | grep 'FAIL:' && Exit 1
# Try also with a VPATH build.
libquux1.c:
echo 'int quux1(void) { return 0; }' > $@
-CLEANFILES = libquux1.c # for FreeBSD make
+CLEANFILES = libquux1.c # For FreeBSD make.
END
cat > foo.c <<'END'
libbar.c:
echo 'int bar(void) { return 0; }' > $@
-CLEANFILES = libbar.c # for FreeBSD make
+CLEANFILES = libbar.c # For FreeBSD make.
installcheck-local:
ls -l $(prefix)/lib
libbar.c:
echo 'int bar(void) { return 0; }' > $@
-CLEANFILES = libbar.c # for FreeBSD make
+CLEANFILES = libbar.c # For FreeBSD make.
installcheck-local:
ls -l $(prefix)/lib
bar.c baz.c:
echo 'int $@ (void) { return 0; }' | sed 's/\.c //' > $@
CLEANFILES = baz.c
-CLEANFILES += bar.c # for FreeBSD make
+CLEANFILES += bar.c # For FreeBSD make.
.PHONY: test test2
check-local: test1 test2
foo2.test barz:
(echo '#!/bin/sh' && echo 'exit 0') > $@ && chmod a+x $@
-CLEANFILES = foo2.test barz # for FreeBSD make
+CLEANFILES = foo2.test barz # For FreeBSD make.
# Also try an empty match suffix, to ensure that the `:=' in there is
# not confused by the parser with an unportable assignment operator.
$AUTOMAKE -a
# Sanity check: make sure the variable we are attempting to force
-# is used by configure
+# is indeed used by configure.
grep am_cv_CC_dependencies_compiler_type configure
./configure am_cv_CC_dependencies_compiler_type=dashmstdout
$MAKE check
# The failure we check usually occurs during the above build,
-# with an output such as
+# with an output such as:
#
-# mv -f .libs/f.lo f.lo
-# mv: cannot stat `.libs/f.lo': No such file or directory
+# mv -f .libs/f.lo f.lo
+# mv: cannot stat `.libs/f.lo': No such file or directory
#
# (This may happen on `f' or on some other files.)
test -f librace.la
-test -f tst # a proof that check-local was run
+test -f tst # A proof that check-local was run.
:
EOF
cat >>configure.in << 'EOF'
-## These lines are activated for later tests
+## These lines are activated for later tests.
#: AC_CONFIG_LIBOBJ_DIR([lib])
AC_PROG_CC
#x AM_PROG_CC_C_O
noinst_LIBRARIES = libfeep.a
libfeep_a_SOURCES =
-libfeep_a_LIBADD = $(ALLOCA) $(LIBOBJS) # Add LIBOBJS for fun
+libfeep_a_LIBADD = $(ALLOCA) $(LIBOBJS) # Add LIBOBJS for fun.
check_PROGRAMS = main
main_LDADD = libfeep.a
tar tf $distdir.tar | $FGREP support
tar xf $distdir.tar
-ls -l . $distdir # for debugging
+ls -l . $distdir # For debugging.
test -d $distdir/support
-ls -l $distdir/support # for debugging
+ls -l $distdir/support # For debugging.
test -f $distdir/support/install-sh
:
mv -f configure.int configure.in
$ACLOCAL --force
$AUTOCONF --force
-# This one should define PYTHON as : and exit successfully
+# This one should define PYTHON as `:' and exit successfully.
./configure
# Any user setting should be used.
../configure --prefix="/usr"
DESTDIR=$instdir $MAKE -e install
-# Perfunctory test that the files were created
+# Perfunctory test that the files were created.
test -f "$instdir/usr/share/my/my.py"
test -f "$instdir/usr/share/my/my.pyc"
test -f "$instdir/usr/share/my/my.pyo"
-# If DESTDIR has made it into the byte compiled files, fail the test
+# If DESTDIR has made it into the byte compiled files, fail the test.
$FGREP "$instdir" "$instdir/usr/share/my/my.pyo" \
"$instdir/usr/share/my/my.pyc" && Exit 1
edit_h = sed -e 's|[@]foovar@|@foovar@|g'
foo.h: foo.in.h
$(edit_h) < $(srcdir)/foo.in.h > $@-t
- cat $@-t;: for debugging
+ cat $@-t;: For debugging.
mv -f $@-t $@
EXTRA_DIST = foo.in.h
MOSTLYCLEANFILES = foo.h foo.h-t
# Check that remake rules works from subdirectories, even with non-GNU
# make implementations.
# See also the other similar tests `remake-subdir*.test', and the
-# related test `aclocal5.test'
+# related test `aclocal5.test'.
. ./defs || Exit 1
# Check that remake rules works from subdirectories, even when makefiles
# are not named "Makefile".
# See also the other similar tests `remake-subdir*.test', and the
-# related test `aclocal5.test'
+# related test `aclocal5.test'.
. ./defs || Exit 1
echo 'm4_define([my_fingerprint], [BadBadBad])' > foo.m4
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
fi
$top_srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
echo "m4_define([my_fingerprint], [$magic1])" > $top_srcdir/foo.m4
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
$sleep
echo "m4_define([my_fingerprint], [$magic2])" > $top_srcdir/foo.m4
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
echo "m4_include([bar.m4])" > $top_srcdir/foo.m4
echo "m4_define([my_fingerprint], [$magic3])" > $top_srcdir/bar.m4
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile && Exit 1
$FGREP $magic3 Makefile
echo "m4_define([my_fingerprint], [DummyValue])" > $top_srcdir/foo.m4
using_gmake || $remake
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
- $FGREP $magic3 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
+ $FGREP $magic3 Makefile && Exit 1 # Likewise.
$MAKE distclean
echo 'FINGERPRINT = BadBadBad' > foo.am
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
fi
$top_srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
echo "FINGERPRINT = $magic1" > $top_srcdir/foo.am
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
$sleep
echo "FINGERPRINT = $magic2" > $top_srcdir/foo.am
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
echo 'include $(top_srcdir)/bar.am' > $top_srcdir/foo.am
echo "FINGERPRINT = $magic3" > $top_srcdir/bar.am
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile && Exit 1
$FGREP $magic3 Makefile
echo "FINGERPRINT = DummyValue" > $top_srcdir/foo.am
using_gmake || $remake
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
- $FGREP $magic3 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
+ $FGREP $magic3 Makefile && Exit 1 # Likewise.
$MAKE distclean
mkdir m4
echo 'AC_DEFUN([my_fingerprint], [BadBadBad])' > m4/foo.m4
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL -I m4
$AUTOCONF
$AUTOMAKE
fi
$top_srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
echo "AC_DEFUN([my_fingerprint], [$magic1])" > $top_srcdir/m4/foo.m4
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
$sleep
echo "AC_DEFUN([my_fingerprint], [$magic2])" > $top_srcdir/m4/foo.m4
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
echo "m4_include([m4/bar.m4])" > $top_srcdir/m4/foo.m4
echo "AC_DEFUN([my_fingerprint], [$magic3])" > $top_srcdir/m4/bar.m4
$remake
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile && Exit 1
$FGREP $magic3 Makefile
echo "AC_DEFUN([AM_UNUSED], [NoSuchMacro])" > $top_srcdir/m4/bar.m4
using_gmake || $remake
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
- $FGREP $magic3 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
+ $FGREP $magic3 Makefile && Exit 1 # Likewise.
$MAKE distclean
bar_in_list=`find . -name bar.in | LC_ALL=C sort`
bar_list=`echo "$bar_in_list" | sed 's/\.in$//'`
-cat configure.in # useful for debugging
+cat configure.in # For debugging.
$ACLOCAL
$AUTOMAKE
else
$MAKE Makefile
fi
-grep '^#H:' zardoz.in # for debugging
+grep '^#H:' zardoz.in # For debugging.
$FGREP $magic1 zardoz
$FGREP $magic1 zardoz.in
$MAKE distcheck
-$MAKE distclean # this shouldn't remove Makefile
+$MAKE distclean # This shouldn't remove Makefile.
ls -l
test -f Makefile
$sleep
sed "s/%MAGIC3%/$magic3/" >> Makefile <<'END'
my-check:
- ls -l . $(srcdir) ;: for debugging
+ ls -l . $(srcdir) ;: For debugging.
test -f $(srcdir)/quux.am
test -f $(srcdir)/quux.in
test -f $(srcdir)/bot.in
test -f $(srcdir)/top.in
test ! -r $(srcdir)/zardoz.am
test ! -r $(srcdir)/zardoz.in
- grep FOO zardoz ;: for debugging
+ grep FOO zardoz ;: For debugging.
test x'$(FOO)' = x'%MAGIC3%'
test:
- ls -l ;: for debugging
+ ls -l ;: For debugging.
test x'$(FOO)' = x'dummy'
.PHONY: test my-check
END
sed "s/^#H:.*/#H: $magic2/" zardoz.am > t
cat >> t <<'END'
-# used by "make distcheck" below
+# Used by "make distcheck" below.
check-local: my-check
END
mv -f t zardoz.am
-cat zardoz.am # for debugging
+cat zardoz.am # For debugging.
if using_gmake; then
$MAKE nil
else
$MAKE zardoz
fi
-$FGREP my-check zardoz # sanity check
+$FGREP my-check zardoz # Sanity check.
$FGREP $magic1 zardoz zardoz.in && Exit 1
$FGREP $magic2 zardoz
$FGREP $magic2 zardoz.in
sed 's/^\(AC_CONFIG_FILES\)(.*/\1([zardoz:top.in:quux.in:bot.in])/' \
<configure.in >t
mv -f t configure.in
-cat configure.in # for debugging
+cat configure.in # For debugging.
sed '/^#H:/d' zardoz.am > quux.am
echo 'FOO = dummy' >> quux.am
echo 'BAR = $(BAZ)' > top.in
echo "BAZ = $magic3" > bot.in
is_gmake || $MAKE zardoz
$MAKE test
-$FGREP my-check zardoz # sanity check
+$FGREP my-check zardoz # Sanity check.
$FGREP $magic3 quux.in && Exit 1
$FGREP $magic3 zardoz
$FGREP $magic1 zardoz && Exit 1
$FGREP $magic2 zardoz && Exit 1
# After the remake above, the files `zardoz.am' and `zardoz.in'
-# should be no more needed
-echo 'endif' > zardoz.am # put in syntax error
+# should be no more needed.
+echo 'endif' > zardoz.am # Put in a syntax error.
is_gmake || $MAKE zardoz
$MAKE test
-rm -f zardoz.in zardoz.am # get rid of them
+rm -f zardoz.in zardoz.am # Get rid of them.
is_gmake || $MAKE zardoz
$MAKE test
# Rebuild rules should work even if there is no top-level
# makefiles, if we are careful enough to trigger them only
-# in proper subdirs
+# in proper subdirs.
$sleep
echo "# $fingerprint" > sub/Makefile.am
cd sub
cd ..
# Now try an in-tree build.
-: > sub/foo.in # restore its original (empty) content
+: > sub/foo.in # Restore its original (empty) content.
./configure
$sleep
test -f sub/foo
grep '%GrepMe%' sub/foo
END
$MAKE
-grep "grep '%GrepMe%' sub/foo" Makefile.in # sanity check
+grep "grep '%GrepMe%' sub/foo" Makefile.in # Sanity check.
$MAKE distcheck
:
$AUTOCONF
$AUTOMAKE
-srcdir='.' # to make syncing with remake8b.test easier.
+srcdir='.' # To make syncing with remake8b.test easier.
$srcdir/configure
test x'$(QUUX)' = x'%Foo%'
END
-$MAKE # this should place aclocal flags in Makefile
-grep '.*-I m4' Makefile # sanity check
+$MAKE # This should place aclocal flags in Makefile.
+grep '.*-I m4' Makefile # Sanity check.
# Modify configure.in and aclocal.m4.
mkdir build
cd build
-srcdir='..' # to make syncing with remake8a.test easier.
+srcdir='..' # To make syncing with remake8a.test easier.
$srcdir/configure
test x'$(QUUX)' = x'%Foo%'
END
-$MAKE # this should place aclocal flags in Makefile
-grep '.*-I m4' Makefile # sanity check
+$MAKE # This should place aclocal flags in Makefile.
+grep '.*-I m4' Makefile # Sanity check.
# Modify configure.in and aclocal.m4.
echo '@FINGERPRINT@'
END
-echo cat > tweak-configure-in # no-op by default
+echo cat > tweak-configure-in # It is a no-op by default.
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
fi
$srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
sed "s/^\\(FINGERPRINT\\)=.*/\\1=$magic1/" $srcdir/configure.in >t
mv -f t $srcdir/configure.in
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
test x"`./foo.sh`" = x"$magic1"
echo 'sed "s/^\\(FINGERPRINT\\)=.*/\\1='$magic2'/"' \
> $srcdir/tweak-configure-in
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
test x"`./foo.sh`" = x"$magic2"
$sleep
- echo cat > $srcdir/tweak-configure-in # no-op again
+ echo cat > $srcdir/tweak-configure-in # Make it a no-op again.
sed "s/^\\(FINGERPRINT\\)=.*/\\1=DummyValue/" $srcdir/configure.in >t
mv -f t $srcdir/configure.in
using_gmake || remake_
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
$MAKE distclean
test x"`./foo.sh`" = x"DummyValue"
END
-echo cat > tweak-makefile-am # no-op by default
+echo cat > tweak-makefile-am # It is a no-op by default.
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
fi
$srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
sed "s/^\\(FINGERPRINT\\) *=.*/\\1 = $magic1/" $srcdir/Makefile.am >t
mv -f t $srcdir/Makefile.am
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
test x"`./foo.sh`" = x"$magic1"
echo 'sed "s/^\\(FINGERPRINT\\) *=.*/\\1 = '$magic2'/"' \
> $srcdir/tweak-makefile-am
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
test x"`./foo.sh`" = x"$magic2"
$sleep
- echo cat > $srcdir/tweak-makefile-am # no-op again
+ echo cat > $srcdir/tweak-makefile-am # Make it a no-op again.
sed "s/^\\(FINGERPRINT\\) *=.*/\\1 = DummyValue/" $srcdir/Makefile.am >t
mv -f t $srcdir/Makefile.am
using_gmake || remake_
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
$MAKE distclean
echo "AC_DEFUN([my_fingerprint], [BadBadBad])" > acinclude.m4
-echo : > tweak-acinclude-m4 # no-op by default
+echo : > tweak-acinclude-m4 # It is a no-op by default.
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL
$AUTOCONF
$AUTOMAKE
fi
$srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
echo "AC_DEFUN([my_fingerprint], [$magic1])" > $srcdir/acinclude.m4
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
test x"`./foo.sh`" = x"$magic1"
echo "echo 'AC_DEFUN([my_fingerprint], [$magic2])'" \
> $srcdir/tweak-acinclude-m4
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
test x"`./foo.sh`" = x"$magic2"
$sleep
- echo : > $srcdir/tweak-acinclude-m4 # no-op again
+ echo : > $srcdir/tweak-acinclude-m4 # Make it a no-op again.
echo "AC_DEFUN([my_fingerprint], [DummyValue])" > $srcdir/acinclude.m4
using_gmake || remake_
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
$MAKE distclean
echo '@FINGERPRINT@'
END
-echo cat > tweak-aclocal-m4 # no-op by default
+echo cat > tweak-aclocal-m4 # It is a no-op by default.
-$sleep # so that generated autotools files will be newer than prerequisites
+$sleep # So that generated autotools files will be newer than prerequisites.
$ACLOCAL
# Cheatingly mark aclocal.m4 as non auto-generated.
sed '/^ *#.*generated automatically/d' aclocal.m4 > t
fi
$srcdir/configure
- $MAKE # should be no-op
+ $MAKE # Should be a no-op.
$sleep
echo "AC_DEFUN([my_fingerprint], [$magic1])dnl %%%" >> $srcdir/aclocal.m4
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile
test x"`./foo.sh`" = x"$magic1"
echo "sed 's/.*dnl *%%%.*/AC_DEFUN([my_fingerprint], [$magic2])/'" \
> $srcdir/tweak-aclocal-m4
remake_
- $FGREP FINGERPRINT Makefile # for debugging
+ $FGREP FINGERPRINT Makefile # For debugging.
$FGREP $magic1 Makefile && Exit 1
$FGREP $magic2 Makefile
test x"`./foo.sh`" = x"$magic2"
$sleep
- echo cat > $srcdir/tweak-aclocal-m4 # no-op again
+ echo cat > $srcdir/tweak-aclocal-m4 # Make it a no-op again.
echo 'AC_DEFUN([my_fingerprint], [DummyValue])' >> $srcdir/aclocal.m4
using_gmake || remake_
$MAKE distcheck
- $FGREP $magic1 Makefile && Exit 1 # sanity check
- $FGREP $magic2 Makefile && Exit 1 # likewise
+ $FGREP $magic1 Makefile && Exit 1 # Sanity check.
+ $FGREP $magic2 Makefile && Exit 1 # Likewise.
$MAKE distclean
: > b
: > c
-stat a b c || : # for debugging
+stat a b c || : # For debugging.
is_newest c a
is_newest b a
touch -r c d
-stat c d || : # for debugging
+stat c d || : # For debugging.
is_newest c d
#------------------------------------------------------------------
-: Leading spaces
+: Leading spaces.
cat > input <<END
1
#------------------------------------------------------------------
-: Leading tab
+: Leading tab.
cat > input <<END
${tab}1
#------------------------------------------------------------------
-: No leading whitespace
+: No leading whitespace.
cat > input <<END
1
#------------------------------------------------------------------
-: Leading empty lines are ignored [1]
+: Leading empty lines are ignored [1].
cat > input <<END
#------------------------------------------------------------------
-: Leading empty lines are ignored [2]
+: Leading empty lines are ignored [2].
cat > input <<END
#------------------------------------------------------------------
-: More elaborated parallel use
+: More elaborated parallel use.
cat > input <<END
x
AUTOMAKE_fails
$AUTOMAKE -Wno-error
-# AM_SILENT_RULES should turn off the warning
+# AM_SILENT_RULES should turn off the warning.
$sleep
echo 'AM_SILENT_RULES' >> configure.in
$ACLOCAL
./configure --disable-silent-rules
-# Make sure that all labels work in silent-mode
+# Make sure that all labels work in silent-mode.
$MAKE V=0 dvi html info ps pdf >stdout || { cat stdout; Exit 1; }
cat stdout
grep 'DVIPS foo.ps' stdout || Exit 1
int main() { return 0; }
EOF
-# let's try out other extensions too
+# Let's try out other extensions too.
echo 'class Baz { public: int i; };' > baz.cxx
echo 'class Quux { public: bool b; };' > quux.cc
# Regression test for multiple rules being generated for each target when
# conditionals are present.
-# From Richard Boulton
+# From Richard Boulton.
. ./defs || Exit 1
sed <configure.in >configure.tmp -e '/^AC_OUTPUT$/i\
AC_CONFIG_FILES([maude/Makefile])\
m4_include([confile.m4])\
-' # last newline required by older OpenBSD sed
+' # Last newline required by older OpenBSD sed.
mv -f configure.tmp configure.in
-cat configure.in # might be useful for debugging
+cat configure.in # For debugging.
: > confile.m4
# PR 492: Test asm subdir-objects.
-required=gcc # avoid compiler errors.
+required=gcc
. ./defs || Exit 1
cat > configure.in << END
cat > Makefile.am << 'END'
AUTOMAKE_OPTIONS = subdir-objects
bin_PROGRAMS = foo
-## the `.//' is meant
+## The `.//' below is meant.
foo_SOURCES = .//src/foo.c
END
# Automatic dependency tracking with subdir-objects option active:
# check for a pathological case of slash-collapsing in the name of
# included makefile fragments (containing dependency info).
-# See also related tests `subobj11a.test' and `subobj11b.test'
+# See also related tests `subobj11a.test' and `subobj11b.test'.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test of subdir make dist rules.
-# From Robert Collins
+# From Robert Collins.
required=cc
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Test of subdir make distclean rules.
-# From Robert Collins
+# From Robert Collins.
required=cc
. ./defs || Exit 1
cat > Makefile.am << 'END'
noinst_LTLIBRARIES = libfoo.la
-libfoo_la_SOURCES = src/foo.cc .//src/bar.cc # the `.//' is meant.
+libfoo_la_SOURCES = src/foo.cc .//src/bar.cc # The `.//' is meant.
.PHONY: print
print:
@echo BEG1: "$(LTCXXCOMPILE)" :1END
./configure
$MAKE
$MAKE distcheck
-test ! -d subpack-1 # make sure distcheck cleans up after itself
+test ! -d subpack-1 # Make sure distcheck cleans up after itself.
test -f subpack-1.tar.gz
:
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# make sure different subpackages may share files and directories.
+# Make sure different subpackages may share files and directories.
. ./defs || Exit 1
# Test for bug in variable substitution references when left hand
# pattern is null.
-# Report from Richard Boulton
+# Report from Richard Boulton.
required=cc
. ./defs || Exit 1
libfake@SUBST@_a_SOURCES = abra.c kadabra.c
-# then we override the target rule:
+# Then we override the target rule:
libfake@SUBST@.a: Makefile $(libfake@SUBST@_a_OBJECTS) $(libfake@SUBST@_a_DEPENDENCIES)
@echo here we do some custom stuff, instead of invoking the linker
END
$ACLOCAL
$AUTOMAKE -i
-grep '^ *\.c' Makefile.in # for debugging
+grep '^ *\.c' Makefile.in # For debugging.
test `grep -c '^\.c\.o:' Makefile.in` -eq 1
test `grep -c '^\.c\.obj:' Makefile.in` -eq 1
$AUTOMAKE
-grep '^ *\.c' Makefile.in # for debugging
+grep '^ *\.c' Makefile.in # For debugging.
test `grep -c '^\.c\.o:' Makefile.in` -eq 1
test `grep -c '^\.c\.obj:' Makefile.in` -eq 1
libfoo_la_SOURCES = foo.x_
.x_.y:
rm -f $@ $@-t
-## the leading `:;' works around a bug in bash <= 3.2
+## The leading `:;' works around a bug in bash <= 3.2.
:; { echo '/* autogenerated */' \
&& echo '%{' \
&& echo 'int yylex () {return 0;}' \
&& echo '%%' \
&& echo 'WORD: "foo";' \
&& echo '%%' \
-## account for VPATH issues on weaker make implementations
+## Account for VPATH issues on weaker make implementations.
&& cat `test -f '$<' || echo $(srcdir)/`$<; \
} > $@-t
mv -f $@-t $@
baz_SOURCES = baz1.x_ baz2.y-z
.y-z.c .x_.c:
-## account for VPATH issues on weaker make implementations (e.g. IRIX 6.5)
+## Account for VPATH issues on weaker make implementations (e.g. IRIX 6.5).
sed 's/INTEGER/int/g' `test -f '$<' || echo $(srcdir)/`$< >$@
CLEANFILES = foo.c bar.c baz1.c baz2.c
cat >Makefile.am << 'END'
AUTOMAKE_OPTIONS = subdir-objects
SUFFIXES = .baz .o
-# we fake here:
+# We fake here:
.baz.o:
- ## account for VPATH issues on weaker make implementations
+ ## Account for VPATH issues on weaker make implementations.
cp `test -f '$<' || echo $(srcdir)/`$< $@
bin_PROGRAMS = foo
SUFFIXES = .baz .c
.baz.c:
case $@ in sub/*) $(MKDIR_P) sub;; *) :;; esac
-## Account for VPATH issues on weaker make implementations (e.g. IRIX 6.5)
+## Account for VPATH issues on weaker make implementations (e.g. IRIX 6.5).
cp `test -f '$<' || echo $(srcdir)/`$< $@
DISTCLEANFILES = sub/bar.c
$MAKE distcheck
$MAKE distclean
-# Should also work without subdir-objects
+# Should also work without subdir-objects.
sed '/subdir-objects/d' < Makefile.am > t
mv -f t Makefile.am
$ACLOCAL
$AUTOMAKE -i
-grep '^ *\.c' Makefile.in # for debugging
+grep '^ *\.c' Makefile.in # For debugging.
test `grep -c '^\.c\.o:' Makefile.in` -eq 1
test `grep -c '^\.c\.obj:' Makefile.in` -eq 1
$AUTOMAKE
-grep '^ *\.c' Makefile.in # for debugging
+grep '^ *\.c' Makefile.in # For debugging.
test `grep -c '^\.c\.o:' Makefile.in` -eq 1
test `grep -c '^\.c\.obj:' Makefile.in` -eq 1
cat > Makefile.am << 'END'
.k.lo:
-## account for VPATH issues on weaker make implementations
+## Account for VPATH issues on weaker make implementations.
(echo $< && cat `test -f '$<' || echo $(srcdir)/`$<) > $@
noinst_LTLIBRARIES = libfoo.la
.PHONY: test
test: all
grep '^=GREP=ME=$$' foo.lo
-## weaker regex to account for VPATH issues
+## Weaker regex to account for VPATH issues.
grep 'foo\.k$$' foo.lo
check-local: test
END
# foo.$(OBJEXT) using the following rules:
# fooa --[ab]--> foob --[b.$(OBJEXT)]--> foo.$(OBJEXT)
$FGREP ' foo.$(OBJEXT) ' foo-objects
-# barc --[c.o]--> bar.$(OBJEXT) ## This is really meant !
+# barc --[c.o]--> bar.$(OBJEXT) ## This is really meant!
$FGREP ' bar.$(OBJEXT) ' foo-objects
-# bazc --[c.obj]--> baz.$(OBJEXT) ## This is really meant !
+# bazc --[c.obj]--> baz.$(OBJEXT) ## This is really meant!
$FGREP ' baz.$(OBJEXT) ' foo-objects
:
# Test to make sure Automake supports implicit rules with dot-less
# extensions. Se also related "grepping" test suffix6.test.
-required=GNUmake # other makes might not grok dot-less suffix rules
+required=GNUmake # Other makes might not grok dot-less suffix rules.
. ./defs || Exit 1
cat >> configure.in << 'END'
# $(LINK) is not defined automatically by Automake, since the *_SOURCES
-# variables don't contain any known extension (.c, .cc, .f ...),
+# variables don't contain any known extension (.c, .cc, .f, ...).
# So we need this hack -- but since such an hack can also serve as a
# mild stress test, that's ok.
AC_SUBST([LINK], ['cat >$@'])
c.$(OBJEXT):
{ echo '=b.obj=' && cat $<; } >$@
test:
- : for debugging
+ : For debugging.
ls -l
- : implicit intermediate files should be removed by GNU make
+ : Implicit intermediate files should be removed by GNU make ...
test ! -r foob
test ! -r fooc
- : but object files should not
+ : ... but object files should not.
cat foo.$(OBJEXT)
- : for debugging
+ : For debugging.
cat foo.XxX
- : now check that the chain of implicit rules has been executed
- : completely and in the correct order
+ : Now check that the chain of implicit rules has been executed
+ : completely and in the correct order.
(echo =b.obj= && echo =bc= && echo =ab= && echo =src=) > exp
diff exp foo.XxX
rm -f exp
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure we get an error if symlink creation fails.
-# Reported by Joerg-Martin Schwarz
+# Reported by Joerg-Martin Schwarz.
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Make sure dvi target recurses into subdir.
-# Reported by Pavel Roskin
+# Reported by Pavel Roskin.
. ./defs || Exit 1
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check for subdir Texinfo (PR/343)
+# Check for subdir Texinfo (PR/343).
# Also make sure we do not distribute too much foo.info* files (Report
-# from Vincent Lefevre)
+# from Vincent Lefevre).
required='makeinfo tex texi2dvi-o'
. ./defs || Exit 1
./configure
$MAKE dvi
-ls -l # for debugging
-test -f main.sa # sanity check
+ls -l # For debugging.
+test -f main.sa # Sanity check.
$MAKE clean
-ls -l # for debugging
+ls -l # For debugging.
test x"`echo main.*`" = x"main.texi"
TAR_OPTIONS= $MAKE distcheck
: > main-1
: > sub/main-1
-# Break main.texi
+# Break main.texi.
$sleep
cp main.texi main.old
cat > main.texi << 'END'
test -f main
test -f main-1
-# Restore main.texi, and break sub/main.texi
+# Restore main.texi, and break sub/main.texi.
cp main.texi sub/main.texi
mv main.old main.texi
$MAKE && Exit 1
# Check that info files are built in builddir when needed.
# Test with subdir Texinfo.
-# (Similar to txinfo13.test, plus DISTCLEANFILES.)
-# (See also txinfo24.test and txinfo25.test)
+# (Similar to txinfo13.test, plus DISTCLEANFILES).
+# (See also txinfo24.test and txinfo25.test).
required='makeinfo tex texi2dvi-o'
. ./defs || Exit 1
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that info files are built in builddir when needed.
-# (Similar to txinfo16.test, plus CLEANFILES.)
-# (See also txinfo23.test and txinfo25.test)
+# (Similar to txinfo16.test, plus CLEANFILES).
+# (See also txinfo23.test and txinfo25.test).
required='makeinfo tex texi2dvi-o'
. ./defs || Exit 1
test -f main.info
# Make sure stamp-vti is older that version.texi.
-# (A common situation in a real tree.)
+# (A common situation in a real tree).
test -f stamp-vti
test -f version.texi
$sleep
cd build
../configure
$MAKE
-# main.info should be rebuilt in the current directory
+# main.info should be rebuilt in the current directory.
test -f main.info
test ! -f ../main.info
$MAKE dvi
# Check that info files are built in builddir and in srcdir can safely
# co-exist. This setup is obtained by having two info files, only one
# of which being cleaned.
-# (Similar to txinfo16.test, plus CLEANFILES.)
-# (See also txinfo23.test and txinfo24.test)
+# (Similar to txinfo16.test, plus CLEANFILES).
+# (See also txinfo23.test and txinfo24.test).
required='makeinfo tex texi2dvi-o'
. ./defs || Exit 1
test -f other.info
# Make sure stamp-vti is older that version.texi.
-# (A common situation in a real tree.)
+# (A common situation in a real tree).
# This is needed to test the "subtle" issue described below.
test -f stamp-vti
test -f version.texi
test ! -f _inst/info/main.info
test -f ../main.info
-# multiple uninstall should not fail.
+# Multiple uninstall should not fail.
$MAKE uninstall
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Check that info files are built in builddir when needed.
-# Similar to txinfo24.test, but obfuscating filenames with variable references.
+# Similar to txinfo24.test, but obfuscating filenames with variable
+# references.
# Report from Ralf Corsepius.
required='makeinfo tex texi2dvi-o'
test -f main.info
# Make sure stamp-vti is older that version.texi.
-# (A common situation in a real tree.)
+# (A common situation in a real tree).
test -f stamp-vti
test -f version.texi
$sleep
cd build
../configure
$MAKE
-# main.info should be rebuilt in the current directory
+# main.info should be rebuilt in the current directory.
test -f main.info
test ! -f ../main.info
$MAKE dvi
$AUTOMAKE -Wno-override
-# There is only one definition of INFO_DEPS
+# There is only one definition of INFO_DEPS ...
test 1 = `grep '^INFO_DEPS.*=' Makefile.in | wc -l`
-# and it is the right one.
+# ... and it is the right one.
grep '^INFO_DEPS *= *foo.info *$' Makefile.in
# Likewise with AC_SUBST.
$AUTOMAKE -Wno-override
-# There is only one definition of INFO_DEPS
+# There is only one definition of INFO_DEPS ...
test 1 = `grep '^INFO_DEPS.*=' Makefile.in | wc -l`
-# and it is the right one.
+# ... and it is the right one.
grep '^INFO_DEPS *= *@INFO_DEPS@ *$' Makefile.in
:
# we only want them to appear once. But grepping them all would be
# overkill.
for t in info dist-info dvi-am install-html uninstall-pdf-am; do
- $EGREP "(^| )$t*.:" Makefile.in # help in debugging
+ $EGREP "(^| )$t*.:" Makefile.in # For debugging.
test `$EGREP -c "(^| )$t(:| *.:)" Makefile.in` -eq 1
done
./configure || skip_ "configure failure"
$MAKE
-# test rebuild rules
+# Test rebuild rules.
rm -f src/zardoz.h
$MAKE -C src zardoz.h
$MAKE
$MAKE distcheck
-# test rebuild rules from builddir
+# Test rebuild rules from builddir.
touch ../src/zardoz.vala
$MAKE
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Test various variable definitions that include an '=' sign
-# From Raja R Harinath
+# Test various variable definitions that include an '=' sign.
+# From Raja R Harinath.
. ./defs || Exit 1
grep 'thisis' stderr && Exit 1
grep 'here' stderr && Exit 1
-# None of these errors be diagnosed with -Wno-portability
+# None of these errors be diagnosed with `-Wno-portability'.
$AUTOMAKE -Wno-portability
# Likewise if we add this in the Makefile.am
# to redefine the name of the distdir as well.
distdir=$me-7.45.3a
-# This should work without tex, texinfo or makeinfo
+# This should work without tex, texinfo or makeinfo.
TEX=false TEXI2DVI=false MAKEINFO=false
export TEX TEXI2DVI MAKEINFO
# created below; thus causing traces for the old configure.in to be
# used. We could do `$sleep', but it's faster to erase the
# directory. (Erase autom4te*.cache, not autom4te.cache, because some
-# bogus installations of Autoconf use a versioned cache.)
+# bogus installations of Autoconf use a versioned cache).
rm -rf autom4te*.cache
# If we add a global -Wnone, all warnings should disappear.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Check support for no-dist-gzip with xz
+# Check support for no-dist-gzip with xz.
required=xz
. ./defs || Exit 1
test -f parse.c
$MAKE distclean
test -f parse.c
-./configure # we must re-create `Makefile'
+./configure # Re-create `Makefile'.
$MAKE maintainer-clean
test ! -f parse.c
done
cp config.sav config.status
-./config.status # re-create Makefile
+./config.status # Re-create `Makefile'.
$MAKE maintainer-clean
ls -l . sub1 sub2
test ! -r sub2/bar-parse.h
cp config.sav config.status
-./config.status # re-create Makefile
+./config.status # Re-create `Makefile'.
# The distribution must work correctly, assuming the user has
# the proper tools to process yacc files.
AM_YFLAGS = -d
END
-# Original parser, with `foobar'
+# Original parser, with `foobar'.
cat > parse.y << 'END'
%{
int yylex () {return 0;}
$sleep
-# New parser, with `fubar'
+# New parser, with `fubar'.
cat > ../parse.y << 'END'
%{
int yylex () {return 0;}
$sleep
-# New parser, with `maude'
+# New parser, with `maude'.
cat > ../parse.y << 'END'
%{
int yylex () {return 0;}
./configure
$MAKE distdir
-# Yacc-derived C source and header files must be built and distributed
+# Yacc-derived C source and header files must be built and distributed.
test -f sub/parse.c
test -f sub/parse.h
cp Makefile.am Makefile.src
$AUTOMAKE -a
-# If zardoz.h IS mentioned, fail
+# If zardoz.h IS mentioned, fail.
$FGREP 'zardoz.h' Makefile.in && Exit 1
cp Makefile.src Makefile.am
echo 'AM_YFLAGS = -d' >> Makefile.am
$AUTOMAKE
-# If zardoz.h is NOT mentioned, fail
+# If zardoz.h is NOT mentioned, fail.
$FGREP 'zardoz.h' Makefile.in
cp Makefile.src Makefile.am
echo 'AM_YFLAGS = ' >> Makefile.am
$AUTOMAKE
-# If zardoz.h IS mentioned, fail
+# If zardoz.h IS mentioned, fail.
$FGREP 'zardoz.h' Makefile.in && Exit 1
cp Makefile.src Makefile.am
grep 'YFLAGS.* user variable' stderr
grep 'AM_YFLAGS.* instead' stderr
$AUTOMAKE -Wno-gnu
-# If zardoz.h is NOT mentioned, fail
+# If zardoz.h is NOT mentioned, fail.
$FGREP 'zardoz.h' Makefile.in
cp Makefile.src Makefile.am
echo 'YFLAGS = ' >> Makefile.am
$AUTOMAKE -Wno-gnu
-# If zardoz.h IS mentioned, fail
+# If zardoz.h IS mentioned, fail.
$FGREP 'zardoz.h' Makefile.in && Exit 1
:
cat > configure.in << 'END'
AC_INIT([yacc6], [1.0])
-# `aux' is not an acceptable file/directory name on Windows systems
+# `aux' is not an acceptable file/directory name on Windows systems.
AC_CONFIG_AUX_DIR([aux1])
AM_INIT_AUTOMAKE
AC_CONFIG_FILES([Makefile sub/Makefile])
test -f foo.h
test -f foo.c
# ... but maintainer-clean should.
-./configure # we must re-create `Makefile'
+./configure # Re-create `Makefile'.
$MAKE maintainer-clean
test ! -f foo.h
test ! -f foo.c
$MAKE test1
# Aside of the rest of this test, let's see if we can recover from
-# parse.h removal
+# parse.h removal.
test -f foo/parse.h
rm -f foo/parse.h
$MAKE foo/parse.h
test -f ./ylwrap
cd sub
-# Regenerate Makefile (automatic in GNU Make, but not in other Makes)
+# Regenerate Makefile (automatic in GNU Make, but not in other Makes).
./config.status
$MAKE test2
foo_SOURCES = parse.y foo.c
END
-# Original parser, with `foobar'
+# Original parser, with `foobar'.
cat > parse.y << 'END'
%{
int yylex () {return 0;}
$sleep
-# New parser, with `fubar'
+# New parser, with `fubar'.
cat > ../parse.y << 'END'
%{
int yylex () {return 0;}
$sleep
-# New parser, with `maude'
+# New parser, with `maude'.
cat > ../parse.y << 'END'
%{
int yylex () {return 0;}
cat > Makefile1.am <<'END'
bin_PROGRAMS = foo
foo_SOURCES = foo.y
-## dummy comment to keep line count right
+## This is a dummy comment to keep line count right.
if COND
YFLAGS = foo
endif COND
: > ylwrap
-LC_ALL=C; export LC_ALL # For grep regexes below.
+LC_ALL=C; export LC_ALL; # For grep regexes below.
AUTOMAKE_fails -Wnone -Wunsupported Makefile
grep '^Makefile\.am:5:.*AM_YFLAGS.* conditional contents' stderr
$ACLOCAL
$AUTOMAKE -a -Wno-gnu
-$EGREP '(foo|YFLAGS)' Makefile.in # for debugging
+$EGREP '(foo|YFLAGS)' Makefile.in # For debugging.
grep '^foo.h *:' Makefile.in
$AUTOCONF
$AUTOMAKE -a
-$EGREP '(foo|bar|YFLAGS)' Makefile.in # for debugging
+$EGREP '(foo|bar|YFLAGS)' Makefile.in # For debugging.
grep '^foo.h *:' Makefile.in
grep '^bar-bar.h *:' Makefile.in
$AUTOMAKE
-$EGREP 'parser|YFLAGS' Makefile.in # for debugging
+$EGREP 'parser|YFLAGS' Makefile.in # For debugging.
grep '^parser.h *:' Makefile.in
:
# Check that $(YFLAGS) takes precedence over both $(AM_YFLAGS) and
# $(foo_YFLAGS).
# Please keep this in sync with the sister tests yflags2.test, lflags.test
-# and lflags2.test
+# and lflags2.test.
. ./defs || Exit 1
# Check that $(YFLAGS) takes precedence over both $(AM_YFLAGS) and
# $(foo_YFLAGS).
# Please keep this in sync with the sister tests yflags.test, lflags.test
-# and lflags2.test
+# and lflags2.test.
. ./defs || Exit 1