blob: 7950bb244fb897a81acab010851b09962ae1e135 [file]
#! /bin/sh
# Test to make sure install-exec-hook works.
# Report from Tim Goodwin.
. $srcdir/defs || exit 1
cat > Makefile.am << 'END'
install-exec-hook:
@echo nothing
END
$ACLOCAL || exit 1
$AUTOMAKE || exit 1
test "`grep install-exec-hook Makefile.in | wc -l`" -gt 1 || exit 1
lnum=`grep -n '^install-exec-am:' Makefile.in | awk -F: '{print $1}'`
test x$lnum != x && tail +$lnum Makefile.in | head -3 | grep install-exec-hook