ham/hamlib: Replaced backtick cmdsub.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-07-15 03:46:48 -04:00 committed by Willy Sudiarto Raharjo
parent 0af8df9a75
commit 4a869f5aee
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -93,19 +93,19 @@ fi
if { [ x"${PY_MOD}" = x"yes" ] || [ x"${PY3_MOD}" = x"yes" ]; } then
PYTHON_BINDING="--with-python-binding"
PYV=`python -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)";`
PYV=$( python -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)"; )
else
PYTHON_BINDING=""
fi
if [ x"${PY3_MOD}" = x"yes" ]; then
export PYTHON=`which python3`
PYV=`python3 -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)";`
export PYTHON=$( which python3 )
PYV=$( python3 -c "import sys;t='{v[0]}.{v[1]}'.format(v=list(sys.version_info[:2]));sys.stdout.write(t)"; )
fi
if [ x"${TCL_MOD}" = x"yes" ]; then
TCL_BINDING="--with-tcl-binding"
TCLV=`echo 'puts $tcl_version;exit 0' | tclsh`
TCLV=$( echo 'puts $tcl_version;exit 0' | tclsh )
else
TCL_BINDING=""
fi