]> git.proxmox.com Git - mirror_zfs.git/blob - cmd/arcstat/Makefile.am
pyzfs: python3 support (build system)
[mirror_zfs.git] / cmd / arcstat / Makefile.am
1 dist_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 #
9 if USING_PYTHON_2
10 install-exec-hook:
11 sed --in-place 's|^#!/usr/bin/python3|#!/usr/bin/python2|' \
12 $(DESTDIR)$(bindir)/arcstat
13 endif