* tests/Makefile.am (TESTS): Add man2.test.
* lib/am/mans.am (install-man%SECTION%): Change the extension
of the man pages being installed, as documented.
+2002-04-13 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * tests/man2.test: New file.
+ * tests/Makefile.am (TESTS): Add man2.test.
+ * lib/am/mans.am (install-man%SECTION%): Change the extension
+ of the man pages being installed, as documented.
+
2002-04-13 Alexandre Duret-Lutz <duret_g@epita.fr>
Enable traces; wipe out the old configure.in parser.
## Find the file.
if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
else file=$$i; fi; \
+## Change the extension if needed.
+ ext=`echo $$i | sed -e 's/^.*\\.//'`; \
+ case "$$ext" in \
+ %SECTION%*) ;; \
+ *) ext='%SECTION%' ;; \
+ esac; \
## Extract basename of man page and run it through the program rename
## transform.
- ext=`echo $$i | sed -e 's/^.*\\.//'`; \
inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
inst=`echo $$inst | sed -e 's/^.*\///'`; \
inst=`echo $$inst | sed '$(transform)'`.$$ext; \
make.test \
makevars.test \
man.test \
+man2.test \
mclean.test \
mdate.test \
mdate2.test \
make.test \
makevars.test \
man.test \
+man2.test \
mclean.test \
mdate.test \
mdate2.test \
--- /dev/null
+#! /bin/sh
+
+# Make sure that man pages listed in man_MANS are installed and
+# renamed as documented.
+
+. $srcdir/defs || exit 1
+
+set -e
+
+echo AC_OUTPUT >> configure.in
+
+cat > Makefile.am << 'END'
+man_MANS = foo.2
+man4_MANS = foo.4 bar.man
+END
+
+: > foo.2
+: > foo.4
+: > bar.man
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+
+# Let's play with $DESTDIR too, it shouldn't hurt.
+./configure --prefix=''
+$MAKE DESTDIR=$PWD/=inst install
+
+test -f ./=inst/man/man2/foo.2
+test -f ./=inst/man/man4/foo.4
+test -f ./=inst/man/man4/bar.4