aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/arcstat/Makefile.am
blob: a0728f9cec1bf0080f73b8b57c6decc136d78e98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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) ${ac_inplace} -e 's|^#!/usr/bin/env python3|#!/usr/bin/env python2|' \
	    $(DESTDIR)$(bindir)/arcstat
endif