diff options
author | Brian Behlendorf <[email protected]> | 2019-08-22 09:53:45 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2019-08-22 09:53:45 -0700 |
commit | a3ba6e589fcea2c08a50d3442c5e1805bdfb86f4 (patch) | |
tree | f45bc33126af23b58abb6543e9bc86e4c073db2d | |
parent | 2f74950c5e0f0693448a4c8bb75389313f00c996 (diff) | |
parent | 92a9e1da60f760380220624db2681b72ffff9a0b (diff) |
Fix automake program name transformations (#9190)
Automake can perform program name transformations at install time.
However, arc_summary has its own name transformation taking place,
which interferes with the automake transforms. The automake transforms
must be taken into account in order to resolve the conflict.
Signed-off-by: Ryan Moeller <[email protected]>
-rw-r--r-- | cmd/arc_summary/Makefile.am | 10 |
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 |