From 9506d7e32b06e9cbcce6181a8720cd362e063e67 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 6 Mar 2011 20:50:22 +0600 Subject: [PATCH] Fix copying modules data directories. This fixes out-of-tree builds. --- modules/Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Makefile.in b/modules/Makefile.in index b87f4626..03e4e657 100644 --- a/modules/Makefile.in +++ b/modules/Makefile.in @@ -106,8 +106,8 @@ install_metadirs: create_install_dir d=$$(echo $$a | sed -e "s:$(srcdir)/::g;s:modperl::;s:modpython::"); \ if [ -d $$a ] && [ -f $${d}.so ]; then \ cp -R $$a $(DESTDIR)$(DATADIR); \ - find $(DESTDIR)$(DATADIR)/$$a -type d -exec chmod 0755 '{}' \;; \ - find $(DESTDIR)$(DATADIR)/$$a -type f -exec chmod 0644 '{}' \;; \ + find $(DESTDIR)$(DATADIR)/$$d -type d -exec chmod 0755 '{}' \;; \ + find $(DESTDIR)$(DATADIR)/$$d -type f -exec chmod 0644 '{}' \;; \ fi \ done