[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[automake-commit] branch master updated: python: don't assume $(...) in
From: |
Karl Berry |
Subject: |
[automake-commit] branch master updated: python: don't assume $(...) in py-compile. |
Date: |
Sun, 13 Dec 2020 21:34:50 -0500 |
This is an automated email from the git hooks/post-receive script.
karl pushed a commit to branch master
in repository automake.
View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=6a753ef54ae4688f60a1a22415e028e4b51ca372
The following commit(s) were added to refs/heads/master by this push:
new 6a753ef python: don't assume $(...) in py-compile.
6a753ef is described below
commit 6a753ef54ae4688f60a1a22415e028e4b51ca372
Author: Karl Berry <karl@freefriends.org>
AuthorDate: Sun Dec 13 18:34:35 2020 -0800
python: don't assume $(...) in py-compile.
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/py-compile b/lib/py-compile
index e56d98d..27407c7 100755
--- a/lib/py-compile
+++ b/lib/py-compile
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [automake-commit] branch master updated: python: don't assume $(...) in py-compile.,
Karl Berry <=