helpers: Fix install of completion-helper.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 24 Feb 2015 13:07:54 +0000 (14:07 +0100)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 24 Feb 2015 13:11:45 +0000 (14:11 +0100)
By applying the supplied transformation to the program name,
for example --program-prefix.

libs/gst/helpers/Makefile.am

index 41b0d61..523b2df 100644 (file)
@@ -10,7 +10,8 @@ dist_bashhelpers_DATA = gst
 
 install-data-hook:
        cd $(DESTDIR)$(bindir) && \
-       mv gst-completion-helper-@GST_API_VERSION@$(EXEEXT) $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
+       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)
 endif