Edit

kc3-lang/automake/tests/distdir.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-02-22 02:35:30
    Hash : 85b381e7
    Message : * tests/distdir.test: Check to make sure directory isn't made in build directory.

  • tests/distdir.test
  • #! /bin/sh
    
    # Test to make sure subdirs in EXTRA_DIST work.  Also tests to make
    # sure "./" is ignored.
    
    . $srcdir/defs || exit 1
    
    cat > Makefile.am << 'END'
    EXTRA_DIST = foo/bar ./joe
    END
    
    $AUTOMAKE || exit 1
    
    grep '\$(mkinstalldirs).*\.' Makefile.in && exit 1
    grep '\$(mkinstalldirs).*foo' Makefile.in || exit 1
    
    # Check to make sure `foo' isn't made in build directory.
    grep 'mkinstalldirs.*foo.*foo' Makefile.in && exit 1
    exit 0