mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 18:31:00 +03:00
eaf8e3b779
Reviewed-by: Ryan Moeller <ryan@ixsystems.com> Reviewed-by: Richard Laager <rlaager@wiktel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net> Closes #9234
14 lines
396 B
Makefile
14 lines
396 B
Makefile
dist_bin_SCRIPTS = arcstat
|
|
|
|
#
|
|
# The arcstat script is compatible with both Python 2.6 and 3.4.
|
|
# As such the python 3 shebang can be replaced at install time when
|
|
# targeting a python 2 system. This allows us to maintain a single
|
|
# version of the source.
|
|
#
|
|
if USING_PYTHON_2
|
|
install-exec-hook:
|
|
sed --in-place 's|^#!/usr/bin/python3|#!/usr/bin/python2|' \
|
|
$(DESTDIR)$(bindir)/arcstat
|
|
endif
|