Tag
Hash :
ec966567
Author :
Date :
2002-06-10T18:54:33
* lib/am/header-vars.am (transform): Define. Was removed by mistake on 2002-04-13. * tests/transform.test: New file. * tests/Makefile.am (TESTS): Add transform.test. Reported by Nicolas Joly.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#! /bin/sh
# Make sure that --program-transform works.
. $srcdir/defs || exit 1
set -e
cat >>configure.in <<'END'
AC_PROG_CC
AC_OUTPUT
END
cat >Makefile.am <<'EOF'
bin_PROGRAMS = h
bin_SCRIPTS = h.sh
man_MANS = h.1
EOF
cat >h.c <<'EOF'
int
main ()
{
return 0;
}
EOF
: > h.sh
: > h.1
$ACLOCAL
$AUTOCONF
$AUTOMAKE
./configure --program-prefix=gnu- --prefix `pwd`/inst
$MAKE
$MAKE install
test -f inst/bin/gnu-h
test -f inst/bin/gnu-h.sh
test -f inst/man/man1/gnu-h.1
$MAKE uninstall
test `find inst/foo -type f -print | wc -l` = 0