zfs-builds-mm/zfs-0.8.4/cmd/arcstat/Makefile.am

14 lines
404 B
Makefile
Raw Normal View History

2020-07-19 16:21:53 +02:00
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/env python3|#!/usr/bin/env python2|' \
$(DESTDIR)$(bindir)/arcstat
endif