From a8a1754e23ef584b6c74bf5676cae6788b434647 Mon Sep 17 00:00:00 2001 From: Thomas Gellekum Date: Wed, 6 Sep 2000 12:18:18 +0000 Subject: Fix `python: command not found' when python doesn't exist. Noticed by: steve --- misc/py-distutils/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc') diff --git a/misc/py-distutils/Makefile b/misc/py-distutils/Makefile index 35cf8746e43c..c72770de15dc 100644 --- a/misc/py-distutils/Makefile +++ b/misc/py-distutils/Makefile @@ -19,7 +19,9 @@ RUN_DEPENDS= python:${PORTSDIR}/lang/python PLIST_SUB= PYVERSION="python${PYVERSION}" -PYVERSION!= python -c 'import string, sys; print string.split(sys.version)[0][:3]' || echo "1.5" +PYVERSION!= (python -c 'import string, sys; \ + print string.split(sys.version)[0][:3]') 2> /dev/null \ + || echo "1.5" do-build: @(cd ${WRKSRC}; python setup.py build) -- cgit v1.2.3