From a0318579fc4e18c5f39abfee7eba1673f612f82f Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 13 Feb 1998 16:43:09 +0000 Subject: [PATCH] added conditional man test --- tests/ChangeLog | 2 ++ tests/Makefile.am | 2 +- tests/Makefile.in | 2 +- tests/condman.test | 20 ++++++++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100755 tests/condman.test diff --git a/tests/ChangeLog b/tests/ChangeLog index 74459190..53e5c665 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,5 +1,7 @@ Fri Feb 13 00:36:38 1998 Tom Tromey + * condman.test: New file. + * Makefile.am (distclean-local): Ignore rm return value. Thu Feb 12 21:00:34 1998 Tom Tromey diff --git a/tests/Makefile.am b/tests/Makefile.am index 4b4e770c..763d808d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -28,7 +28,7 @@ seenc.test cygwin32.test lisp.test stamph.test ldadd.test \ version2.test conf2.test cond.test cond2.test xsource.test \ libobj6.test depend3.test output5.test ammissing.test install.test \ libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \ -whoami.test unused.test +whoami.test unused.test condman.test EXTRA_DIST = defs $(TESTS) diff --git a/tests/Makefile.in b/tests/Makefile.in index c1d851db..7f6529a5 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -89,7 +89,7 @@ seenc.test cygwin32.test lisp.test stamph.test ldadd.test \ version2.test conf2.test cond.test cond2.test xsource.test \ libobj6.test depend3.test output5.test ammissing.test install.test \ libobj7.test objc.test cond3.test cxxcpp.test aclocal.test alpha.test \ -whoami.test unused.test +whoami.test unused.test condman.test EXTRA_DIST = defs $(TESTS) mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs diff --git a/tests/condman.test b/tests/condman.test new file mode 100755 index 00000000..446184a0 --- /dev/null +++ b/tests/condman.test @@ -0,0 +1,20 @@ +#! /bin/sh + +. $srcdir/defs || exit 1 + +cat >> configure.in << 'END' +AM_CONDITIONAL(FRED, true) +END + +cat > Makefile.am << 'END' +if FRED +man_MANS = foo.1 +else +man_MANS = joe.1 +endif +END + +: > foo.1 +: > joe.1 + +$AUTOMAKE -- 2.43.5