clean fixlet
[automake.git] / tests / installsh.test
bloba9589d12df5ba314cad727ef23e84106a6c56b73
1 #! /bin/sh
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.
7 . $srcdir/defs || exit 1
9 : > Makefile.am
10 rm install-sh
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
18 # If srcdir is relative, we need to modify it.
19 case "$srcdir" in
20 /*)
24 srcdir="../$srcdir"
26 esac
28 AUTOMAKE="../../../automake --amdir=$srcdir/.. --foreign"
30 # Now we proceed with the test
31 $AUTOMAKE --add-missing > output 2>&1 \
32 || exit 1
34 # Only one `/' should appear in the output.
35 grep '/.*/' output \
36 && exit 1
38 test -f install-sh