summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-01-26 18:10:39 +0100
committerJim Meyering <meyering@redhat.com>2009-01-26 18:54:58 +0100
commitb27275c668d79ba460b6c2764da5e4d007d01a71 (patch)
tree5240e76236b2cf26bfb7873b8fbd56b210927c8f /maint.mk
parent016f8c99984d4a6005eef76d204cd2c396b357d0 (diff)
downloadcoreutils-b27275c668d79ba460b6c2764da5e4d007d01a71.tar.xz
tests: generalize install-transform-check
* maint.mk (install-transform-check): Generalize to work also in a project that installs manuals in a section other than "1".
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/maint.mk b/maint.mk
index e12c7aac9..4b449d8ed 100644
--- a/maint.mk
+++ b/maint.mk
@@ -649,12 +649,12 @@ taint-distcheck: $(DIST_ARCHIVES)
# Verify that a twisted use of --program-transform-name=PROGRAM works.
define install-transform-check
- rm -rf $(pfx); \
- $(MAKE) program_transform_name='s/.*/zyx/' \
+ echo running install-transform-check \
+ && rm -rf $(pfx) \
+ && $(MAKE) program_transform_name='s/.*/zyx/' \
prefix=$(pfx) install \
&& test "$$(echo $(pfx)/bin/*)" = "$(pfx)/bin/zyx" \
- && test "$$(echo $(pfx)/share/man/man1/*)" = \
- "$(pfx)/share/man/man1/zyx.1"
+ && test "$$(find $(pfx)/share/man -type f|sed 's,.*/,,;s,\..*,,')" = "zyx"
endef
# Install, then verify that all binaries and man pages are in place.