Mercurial > mxe-octave
changeset 4408:eb8b37422e16
pkg-install.py: Check for OCTAVE_HOME, then PREFIX.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Mon, 10 Jul 2017 13:26:33 -0400 |
parents | e9b032b9340a |
children | 60b45297db4a |
files | tools/pkg-install.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/pkg-install.py Sat Jul 08 08:55:57 2017 -0700 +++ b/tools/pkg-install.py Mon Jul 10 13:26:33 2017 -0400 @@ -397,6 +397,8 @@ # work out what arch is etc from mkoctfile/config if env.prefix == "": + env.prefix = os.popen(env.octave_config + " -p OCTAVE_HOME").read().rstrip("\r\n") + if env.prefix == "": env.prefix = os.popen(env.octave_config + " -p PREFIX").read().rstrip("\r\n") env.arch = os.popen(env.octave_config + " -p CANONICAL_HOST_TYPE").read().rstrip("\r\n")