This commit is contained in:
Mattias Andrée 2012-10-29 22:58:33 +01:00
parent 7ac713431c
commit 3ab6df71c2

View file

@ -7,6 +7,7 @@ rr=0 # runtime required
ro=0 # runtime optional ro=0 # runtime optional
pv=0 # python version pv=0 # python version
(hash chmod 2>/dev/null) || (br=1 ; ro=1 ; echo 'Missing chmod, install coreutils [build+runtime required]') (hash chmod 2>/dev/null) || (br=1 ; ro=1 ; echo 'Missing chmod, install coreutils [build+runtime required]')
(hash gzip 2>/dev/null) || (bo=1 ; echo 'Missing gzip, install gzip [build optional]') (hash gzip 2>/dev/null) || (bo=1 ; echo 'Missing gzip, install gzip [build optional]')
@ -17,8 +18,8 @@ pv=0 # python version
(hash cut 2>/dev/null) && (hash python 2>/dev/null) && (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) && ( (test ! $(env python --version 2>&1 | cut -d ' ' -f 2 | cut -d '.' -f 1) = 3) && (
(hash python3 2>/dev/null) || (hash python3 2>/dev/null) ||
(br=1 ; rr=1 ; pv=1 ; echo 'Missing python>=3, install python (may be named python3) [build+runtime required]')) (br=1 ; rr=1 ; pv=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 stty 2>/dev/null) || (rr=1 ; echo 'Missing stty, install coreutils [runtime required]')
@ -36,3 +37,4 @@ pv=0 # python version
echo && echo 'Everything appears to be in order, enjoy ponysay!' echo && echo 'Everything appears to be in order, enjoy ponysay!'
echo echo