Edit

kc3-lang/automake/tests/install2.test

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 2001-03-04 21:05:09
    Hash : f61d5113
    Message : * tests/yaccvpath.test: No need to remove dummy files. * tests/subobj3.test: No need to remove dummy files. * tests/pr9.test: No need to remove dummy files. * tests/pr87.test: No need to remove dummy files. * tests/pr19.test: No need to remove dummy files. * tests/install2.test: No need to remove dummy files. * tests/defs: Actually copy in install-sh, mkinstalldirs, missing, and depcomp.

  • tests/install2.test
  • #! /bin/sh
    
    # Test for bug in `make dist'
    # From Pavel Roskin.
    
    . $srcdir/defs || exit 1
    
    cat > configure.in << 'END'
    AC_INIT
    dnl Prevent automake from looking in .. and ../..
    AC_CONFIG_AUX_DIR(.)
    AM_INIT_AUTOMAKE(foo, 0.1)
    AC_OUTPUT(Makefile)
    END
    
    cat > Makefile.am << 'END'
    SUBDIRS = .
    END
    
    # Fail gracefully if no autoconf.
    $needs_autoconf
    
    # Likewise for gzip.
    (gzip --version) > /dev/null 2>&1 || exit 77
    
    $ACLOCAL || exit 1
    $AUTOCONF || exit 1
    $AUTOMAKE -a || exit 1
    
    chmod 000 Makefile.am
    
    ./configure || exit 1
    # `dist' should fail because we can't copy Makefile.am.
    $MAKE dist  && exit 1
    
    exit 0