source: trunk/essentials/sys-devel/automake-1.4/tests/installsh.test

Last change on this file was 3135, checked in by bird, 18 years ago

drive letters.

File size: 778 bytes
Line 
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
10rm install-sh
11
12# Since the default path includes '../..', we must run this test in
13# yet another subdir.
14mkdir frob
15mv Makefile.am configure.in mkinstalldirs frob/
16cd frob
17
18# If srcdir is relative, we need to modify it.
19case "$srcdir" in
20 /*|[a-zA-Z]:/*)
21 ;;
22
23 *)
24 srcdir="../$srcdir"
25 ;;
26esac
27
28AUTOMAKE="../../../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.
35grep '/.*/' output \
36 && exit 1
37
38test -f install-sh
Note: See TracBrowser for help on using the repository browser.