File: empty.test

package info (click to toggle)
automake 1%3A1.4-p6-13.1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,360 kB
  • ctags: 26
  • sloc: perl: 5,527; sh: 5,269; ansic: 404; makefile: 167
file content (33 lines) | stat: -rwxr-xr-x 782 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/sh

# Test for bug where if the list of installables is empty, invalid sh
# code is generated.

. $srcdir/defs || exit 1

cat > Makefile.am << 'END'
data_DATA =
END

$AUTOMAKE || exit 1

# Create configure so Makefile doesn't look out-of-date.
echo frob > configure.ac
echo frob > configure
echo frob > config.status

# Need a mkinstalldirs we can actually execute.  make on my Linux box
# won't execute this file if is empty, or has just a colon in it (but
# it will run from the shell).
cat > mkinstalldirs << 'END'
#!/bin/sh
END
chmod +x mkinstalldirs

# Substitute variables we need.
sed -e 's,@SHELL@,/bin/sh,g' -e 's/@srcdir@/./g' \
   -e 's/@top_srcdir@/./g' -e 's/@datadir@/./g' \
   -e 's/@CONFIGURE_AC@/configure.ac/g' \
   < Makefile.in > Makefile

$MAKE install