]> git.proxmox.com Git - mirror_zfs.git/blame - cmd/arcstat/Makefile.am
pyzfs: python3 support (build system)
[mirror_zfs.git] / cmd / arcstat / Makefile.am
CommitLineData
6e72a5b9
BB
1dist_bin_SCRIPTS = arcstat
2
3#
4# The arcstat script is compatibile with both Python 2.6 and 3.4.
5# As such the python 3 shebang can be replaced at install time when
6# targeting a python 2 system. This allows us to maintain a single
7# version of the source.
8#
9if USING_PYTHON_2
10install-exec-hook:
11 sed --in-place 's|^#!/usr/bin/python3|#!/usr/bin/python2|' \
12 $(DESTDIR)$(bindir)/arcstat
13endif