12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #! /bin/sh
- . test-init.sh
- echo AC_OUTPUT >> configure.ac
- $ACLOCAL
- $AUTOCONF
- cat > Makefile.am <<'END'
- include foo.am
- include $(srcdir)/bar.am
- include $(top_srcdir)/baz.am
- END
- echo '# this is foo' > foo.am
- echo '# this is bar' > bar.am
- echo '# this is baz' > baz.am
- $AUTOMAKE
- $FGREP 'this is foo' Makefile.in
- $FGREP 'this is bar' Makefile.in
- $FGREP 'this is baz' Makefile.in
- ./configure
- $MAKE
- $sleep
- sed '/^include foo\.am$/d' Makefile.am > t
- mv -f t Makefile.am
- rm -f foo.am
- $MAKE Makefile
- $FGREP 'this is foo' Makefile.in Makefile && exit 1
- $FGREP 'this is bar' Makefile.in
- $FGREP 'this is bar' Makefile
- $FGREP 'this is baz' Makefile.in
- $FGREP 'this is baz' Makefile
- $sleep
- echo '# empty empty' > Makefile.am
- rm -f bar.am baz.am
- $MAKE Makefile
- $FGREP 'empty empty' Makefile.in
- $FGREP 'empty empty' Makefile
- grep 'this is ba[rz]' Makefile Makefile.in && exit 1
- :
|