From 86d62439de0d10ddeb7606fe765c01d2144adab5 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Mon, 10 Jun 2002 18:54:26 +0000 Subject: [PATCH] * 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. --- ChangeLog | 8 ++++++++ lib/am/header-vars.am | 1 + tests/Makefile.am | 1 + tests/Makefile.in | 2 ++ tests/transform.test | 42 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 54 insertions(+) create mode 100755 tests/transform.test diff --git a/ChangeLog b/ChangeLog index 0358df65..c4eec051 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2002-06-10 Alexandre Duret-Lutz + + * 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. + 2002-06-10 Alexandre Duret-Lutz * tests/dollar.test: Require GNU make. diff --git a/lib/am/header-vars.am b/lib/am/header-vars.am index 3810ba1d..377b305a 100644 --- a/lib/am/header-vars.am +++ b/lib/am/header-vars.am @@ -45,6 +45,7 @@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) ## These are defined because otherwise make on NetBSD V1.1 will print ## (eg): $(NORMAL_INSTALL) expands to empty string. diff --git a/tests/Makefile.am b/tests/Makefile.am index e3c88376..187953d3 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -361,6 +361,7 @@ texinfo7.test \ texinfo8.test \ texinfo9.test \ texinfo10.test \ +transform.test \ unused.test \ vars.test \ vartar.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index ab2c4ed7..e1937309 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -28,6 +28,7 @@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : @@ -446,6 +447,7 @@ texinfo7.test \ texinfo8.test \ texinfo9.test \ texinfo10.test \ +transform.test \ unused.test \ vars.test \ vartar.test \ diff --git a/tests/transform.test b/tests/transform.test new file mode 100755 index 00000000..1541b79e --- /dev/null +++ b/tests/transform.test @@ -0,0 +1,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 -- 2.43.5