[jhbuild] config: Set JHBUILD_PREFIX in environment
- From: Craig Keogh <cskeogh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] config: Set JHBUILD_PREFIX in environment
- Date: Wed, 22 Jun 2011 04:00:11 +0000 (UTC)
commit f52ee06486cb61e9e05bc62995cff6e045927187
Author: Colin Walters <walters verbum org>
Date: Mon Jun 20 16:37:30 2011 -0400
config: Set JHBUILD_PREFIX in environment
This is useful for other tools to consume; for example, in my
.bashrc, I want to show:
[jhbuild=/src/build/jhbuild]
Also, my "metabuild" tool will use it as a default for $prefix.
https://bugzilla.gnome.org/show_bug.cgi?id=653048
jhbuild/config.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/config.py b/jhbuild/config.py
index 3826fc4..c7f875d 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -296,6 +296,8 @@ class Config:
except:
raise FatalError(_('install prefix (%s) can not be created') % self.prefix)
+ os.environ['JHBUILD_PREFIX'] = self.prefix
+
os.environ['UNMANGLED_LD_LIBRARY_PATH'] = os.environ.get('LD_LIBRARY_PATH', '')
if not os.environ.get('DBUS_SYSTEM_BUS_ADDRESS'):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]