aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/arc_summary
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/arc_summary')
-rw-r--r--cmd/arc_summary/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/cmd/arc_summary/Makefile.am b/cmd/arc_summary/Makefile.am
index 7d83624d6..e9dbb779a 100644
--- a/cmd/arc_summary/Makefile.am
+++ b/cmd/arc_summary/Makefile.am
@@ -1,11 +1,17 @@
EXTRA_DIST = arc_summary2 arc_summary3
+transform = $(program_transform_name)
+
if USING_PYTHON_2
dist_bin_SCRIPTS = arc_summary2
install-exec-hook:
- mv $(DESTDIR)$(bindir)/arc_summary2 $(DESTDIR)$(bindir)/arc_summary
+ before=$$(echo arc_summary2 | sed '$(transform)'); \
+ after=$$(echo arc_summary | sed '$(transform)'); \
+ mv "$(DESTDIR)$(bindir)/$$before" "$(DESTDIR)$(bindir)/$$after"
else
dist_bin_SCRIPTS = arc_summary3
install-exec-hook:
- mv $(DESTDIR)$(bindir)/arc_summary3 $(DESTDIR)$(bindir)/arc_summary
+ before=$$(echo arc_summary3 | sed '$(transform)'); \
+ after=$$(echo arc_summary | sed '$(transform)'); \
+ mv "$(DESTDIR)$(bindir)/$$before" "$(DESTDIR)$(bindir)/$$after"
endif