Fix permissions for modules's static data.

With cp -Rp, the files's permissions were just copied from source.
But 4c7808c5c broke that behaviour, so after copying we set permissions for new installed files.

Why "install" doesn't support installing directories? :(
This commit is contained in:
Alexey Sokolov
2011-02-28 23:49:53 +06:00
parent 4c7808c5cb
commit 3d3235743d
+2
View File
@@ -106,6 +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 '{}' \;; \
fi \
done