typo + new comment
[automake.git] / tests / insthook.test
blob82876bf1db817386f2c252d62f9e53d6f3c9f614
1 #! /bin/sh
3 # Test to make sure install-exec-hook works.
4 # Report from Tim Goodwin.
6 . $srcdir/defs || exit 1
8 cat > Makefile.am << 'END'
9 install-exec-hook:
10 @echo nothing
11 END
13 $AUTOMAKE || exit 1
15 test "`grep install-exec-hook Makefile.in | wc -l`" -gt 1 || exit 1
16 lnum=`grep -n '^install-exec-am:' Makefile.in | awk -F: '{print $1}'`
17 test x$lnum != x && tail +$lnum Makefile.in | head -3 | grep install-exec-hook