tests: generalize install-transform-check
authorJim Meyering <meyering@redhat.com>
Mon, 26 Jan 2009 17:10:39 +0000 (18:10 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 26 Jan 2009 17:54:58 +0000 (18:54 +0100)
* maint.mk (install-transform-check): Generalize to work also
in a project that installs manuals in a section other than "1".

maint.mk

index e12c7aa..4b449d8 100644 (file)
--- 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.