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".
This commit is contained in:
Jim Meyering committed 2009-01-26 18:54:58 +01:00
1 parent 016f8c9998
commit b27275c668
1 file changed
+4 -4
+4 -4
View File
@@ -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.