From: Mathieu Duponchelle Date: Wed, 15 Apr 2015 12:45:21 +0000 (+0200) Subject: helpers: use $(INSTALL) to ... install the helper. X-Git-Tag: 1.6.1~384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dea4b82dcb913d792c72be538e45eb333c0b58a;hp=d4dcce78b069a3b3331227dc9b6a325b35c7fb4a;p=platform%2Fupstream%2Fgstreamer.git helpers: use $(INSTALL) to ... install the helper. As it will create the folders and set permissions appropriately, better than doing it manually. --- diff --git a/libs/gst/helpers/Makefile.am b/libs/gst/helpers/Makefile.am index 0423fed..a616721 100644 --- a/libs/gst/helpers/Makefile.am +++ b/libs/gst/helpers/Makefile.am @@ -10,9 +10,9 @@ dist_bashhelpers_DATA = gst install-exec-hook: cd $(DESTDIR)$(bindir) && \ - mv `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \ - $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT) - chmod 755 $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT) + $(INSTALL) `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \ + -D $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT) && \ + rm `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) uninstall-hook: rm -f $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)