| Rev | Line | |
|---|
| [3124] | 1 | #! /bin/sh
|
|---|
| 2 |
|
|---|
| 3 | # Test for this bug:
|
|---|
| 4 | # automake: Makefile.am: required file "../../install-sh" not found; installing
|
|---|
| 5 | # This also makes sure that install-sh is created in the correct directory.
|
|---|
| 6 |
|
|---|
| 7 | . $srcdir/defs || exit 1
|
|---|
| 8 |
|
|---|
| 9 | : > Makefile.am
|
|---|
| 10 | rm install-sh
|
|---|
| 11 |
|
|---|
| 12 | # Since the default path includes '../..', we must run this test in
|
|---|
| 13 | # yet another subdir.
|
|---|
| 14 | mkdir frob
|
|---|
| 15 | mv Makefile.am configure.in mkinstalldirs frob/
|
|---|
| 16 | cd frob
|
|---|
| 17 |
|
|---|
| 18 | # If srcdir is relative, we need to modify it.
|
|---|
| 19 | case "$srcdir" in
|
|---|
| [3135] | 20 | /*|[a-zA-Z]:/*)
|
|---|
| [3124] | 21 | ;;
|
|---|
| 22 |
|
|---|
| 23 | *)
|
|---|
| 24 | srcdir="../$srcdir"
|
|---|
| 25 | ;;
|
|---|
| 26 | esac
|
|---|
| 27 |
|
|---|
| 28 | AUTOMAKE="../../../automake --amdir=$srcdir/.. --foreign"
|
|---|
| 29 |
|
|---|
| 30 | # Now we proceed with the test
|
|---|
| 31 | $AUTOMAKE --add-missing > output 2>&1 \
|
|---|
| 32 | || exit 1
|
|---|
| 33 |
|
|---|
| 34 | # Only one `/' should appear in the output.
|
|---|
| 35 | grep '/.*/' output \
|
|---|
| 36 | && exit 1
|
|---|
| 37 |
|
|---|
| 38 | test -f install-sh
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.