Line | |
---|
1 | #! /bin/sh
|
---|
2 |
|
---|
3 | # Make sure ":" works with files automake generates.
|
---|
4 | # This test is for multiple ":"s.
|
---|
5 |
|
---|
6 | . $srcdir/defs || exit 1
|
---|
7 |
|
---|
8 | cat > configure.in << 'END'
|
---|
9 | PACKAGE=nonesuch
|
---|
10 | VERSION=nonesuch
|
---|
11 | AC_ARG_PROGRAM
|
---|
12 | AC_PROG_INSTALL
|
---|
13 | AC_OUTPUT(Makefile:zardoz.in:two.in:three.in)
|
---|
14 | END
|
---|
15 |
|
---|
16 | : > zardoz.am
|
---|
17 | : > two.in
|
---|
18 | : > three.in
|
---|
19 |
|
---|
20 | $AUTOMAKE || exit 1
|
---|
21 |
|
---|
22 | # We actually check several things here.
|
---|
23 | # Automake should have created zardoz.in.
|
---|
24 | test -f zardoz.in || exit 1
|
---|
25 |
|
---|
26 | # The generated file should refer to zardoz.in and zardoz.am, but
|
---|
27 | # never just "zardoz" -- except the actual automake invocation can
|
---|
28 | # refer to it (don't ask).
|
---|
29 | echo Grep1
|
---|
30 | grep zardoz zardoz.in | fgrep -v 'zardoz.in' | fgrep -v 'zardoz.am' \
|
---|
31 | | fgrep -v AUTOMAKE > O
|
---|
32 | # We cat the output file so we see in when verbose.
|
---|
33 | cat O
|
---|
34 | test -z "`cat O`" || exit 1
|
---|
35 |
|
---|
36 | # Makefile should depend on two.in.
|
---|
37 | echo Grep2
|
---|
38 | grep '^Makefile:.* two.in' zardoz.in || exit 1
|
---|
39 | # Likewise three.in.
|
---|
40 | echo Grep3
|
---|
41 | grep '^Makefile:.* three.in' zardoz.in
|
---|
Note:
See
TracBrowser
for help on using the repository browser.