]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
python: don't assume $(...) in py-compile.
authorKarl Berry <karl@freefriends.org>
Mon, 14 Dec 2020 02:34:35 +0000 (18:34 -0800)
committerKarl Berry <karl@freefriends.org>
Mon, 14 Dec 2020 02:34:35 +0000 (18:34 -0800)
This change (very) partially fixes https://bugs.gnu.org/45205.

* lib/py-compile: use `...` instead of $(...).
Solaris 10 /bin/sh is still in use.

lib/py-compile

index e56d98d6e9f7d965b7a615cc3a86987f9f2e97eb..27407c7e60d1b95ea2a67c163cbb094fef7dec97 100755 (executable)
@@ -115,7 +115,7 @@ else
     filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)"
 fi
 
-python_major=$($PYTHON -V 2>&1 | sed -e 's/.* //;s/\..*$//;1q')
+python_major=`$PYTHON -V 2>&1 | sed -e 's/.* //;s/\..*$//;1q'`
 if test -z "$python_major"; then
   echo "$me: could not determine $PYTHON major version, guessing 3" >&2
   python_major=3