summaryrefslogtreecommitdiffstats
path: root/package/jquery-ui
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2015-01-16 08:53:30 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-01-16 09:00:10 +0100
commitae5ed8b5c60ce8390d81928f6be294085b067712 (patch)
tree56b66690a41058985a96935f87e0139348be8cdc /package/jquery-ui
parent0db263726f96047a052831050d00fdb089f2a20f (diff)
downloadbuildroot-ae5ed8b5c60ce8390d81928f6be294085b067712.tar.gz
buildroot-ae5ed8b5c60ce8390d81928f6be294085b067712.zip
jquery-ui: use install -t to copy images to target
Instead of cp + chmod as there may be other files in the destination directory that chmod shouldn't change permissions of / where chmod might fail (E.G. symlinks that are only valid on the target). Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/jquery-ui')
-rw-r--r--package/jquery-ui/jquery-ui.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/package/jquery-ui/jquery-ui.mk b/package/jquery-ui/jquery-ui.mk
index e4d3370a95..d829d6241b 100644
--- a/package/jquery-ui/jquery-ui.mk
+++ b/package/jquery-ui/jquery-ui.mk
@@ -27,9 +27,8 @@ define JQUERY_UI_INSTALL_TARGET_CMDS
$(INSTALL) -m 0644 -D $(@D)/themes/base/minified/jquery-ui.min.css \
$(TARGET_DIR)/var/www/jquery-ui.css
$(INSTALL) -d $(TARGET_DIR)/var/www/images
- cp -a $(@D)/themes/base/minified/images/*.png \
- $(TARGET_DIR)/var/www/images
- chmod 0644 $(TARGET_DIR)/var/www/images/*.png
+ $(INSTALL) -m 0644 -t $(TARGET_DIR)/var/www/images \
+ $(@D)/themes/base/minified/images/*.png
endef
$(eval $(generic-package))
OpenPOWER on IntegriCloud