source: vendor/automake/1.4-p6/tests/empty.test

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

automake 1.4-p6

File size: 782 bytes
Line 
1#! /bin/sh
2
3# Test for bug where if the list of installables is empty, invalid sh
4# code is generated.
5
6. $srcdir/defs || exit 1
7
8cat > Makefile.am << 'END'
9data_DATA =
10END
11
12$AUTOMAKE || exit 1
13
14# Create configure so Makefile doesn't look out-of-date.
15echo frob > configure.ac
16echo frob > configure
17echo frob > config.status
18
19# Need a mkinstalldirs we can actually execute. make on my Linux box
20# won't execute this file if is empty, or has just a colon in it (but
21# it will run from the shell).
22cat > mkinstalldirs << 'END'
23#!/bin/sh
24END
25chmod +x mkinstalldirs
26
27# Substitute variables we need.
28sed -e 's,@SHELL@,/bin/sh,g' -e 's/@srcdir@/./g' \
29 -e 's/@top_srcdir@/./g' -e 's/@datadir@/./g' \
30 -e 's/@CONFIGURE_AC@/configure.ac/g' \
31 < Makefile.in > Makefile
32
33$MAKE install
Note: See TracBrowser for help on using the repository browser.