From 96abf11f46d9fc39593fbc1e92e372c9d864f037 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Andr=C3=A9e?= Date: Thu, 25 Oct 2012 01:47:39 +0200 Subject: [PATCH] python3 is also required for building, not just running --- dependency-test.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dependency-test.sh b/dependency-test.sh index 3c5301bd..ec97d291 100755 --- a/dependency-test.sh +++ b/dependency-test.sh @@ -23,13 +23,14 @@ ro=0 (hash makeinfo 2>/dev/null) || (bo=1 ; echo 'Missing makeinfo, install texinfo [build optional]') (hash install-info 2>/dev/null) || (bo=1 ; echo 'Missing install-info, install info [build optional]') -(hash stty 2>/dev/null) || (rr=1 ; echo 'Missing stty, install coreutils [runtime required]') -(hash python 2>/dev/null) || (rr=1 ; echo 'Missing python, install python>=3 [runtime required]') +(hash python 2>/dev/null) || (rr=1 ; echo 'Missing python, install python>=3 [build+runtime required]') (hash cut 2>/dev/null) && (hash python 2>/dev/null) && (test ! $(env python --version 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1) = 3) && ( (hash python3 2>/dev/null) || - (rr=1 ; echo 'Missing python>=3, install python (may be named python3) [runtime required]')) + (rr=1 ; echo 'Missing python>=3, install python (may be named python3) [build+runtime required]')) + +(hash stty 2>/dev/null) || (rr=1 ; echo 'Missing stty, install coreutils [runtime required]') (hash tty2colourfultty 2>/dev/null) || (ro=1 ; echo 'Missing tty2colourfultty, install util-say [runtime optional]') (hash ponysay2ttyponysay 2>/dev/null) || (ro=1 ; echo 'Missing ponysay2ttyponysay, install util-say [runtime optional]')