Edit

kc3-lang/automake/tests/insthook.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1999-03-11 22:32:53
    Hash : 6e7084c5
    Message : * insthook.test: Don't require GNU grep. From John Pierce.

  • tests/insthook.test
  • #! /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
    
    $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