mirror of https://github.com/BOINC/boinc.git
Add environment variable detection support to _autosetup
This commit is contained in:
parent
45bff1ed17
commit
dbb60355bb
|
@ -25,6 +25,11 @@ check_version()
|
|||
desired=`echo $2 | awk -F. '{print $1*100+$2}'`
|
||||
echo $ECHO_N "Checking version of '$1' >= $desired... $ECHO_C"
|
||||
name=$1
|
||||
app_var_name=`echo $name | tr '[:lower:]-' '[:upper:]_'`
|
||||
if [ ! -z ${!app_var_name+x} ]; then
|
||||
name=${!app_var_name}
|
||||
fi
|
||||
|
||||
fullpath=`type $name | awk '{ print $(NF) }'`;
|
||||
if [ -x "$fullpath" ]; then
|
||||
foundit=yes;
|
||||
|
|
Loading…
Reference in New Issue