[glade] build/linux/jhbuildrc: Allow the user to decide where to build the bundle
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade] build/linux/jhbuildrc: Allow the user to decide where to build the bundle
- Date: Sun, 15 Dec 2013 15:46:08 +0000 (UTC)
commit 3f3818e4f08f979082d71b752f0f43cd6b44f8dc
Author: Tristan Van Berkom <tristan upstairslabs com>
Date: Mon Dec 16 00:44:46 2013 +0900
build/linux/jhbuildrc: Allow the user to decide where to build the bundle
Checks the BUNDLE_ROOT environment variable.
build/linux/jhbuildrc | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/build/linux/jhbuildrc b/build/linux/jhbuildrc
index 57dcb83..3bf2a04 100644
--- a/build/linux/jhbuildrc
+++ b/build/linux/jhbuildrc
@@ -54,14 +54,15 @@ os.environ['JHBUILD_TRIGGERS'] = os.getenv('GLADE_DIR') + '/build/linux/triggers
# A list of the modules to build.
modules = [ 'glade' ]
-# Where to put the tarballs
-tarballdir = "~/AppImages/Tarballs"
-
-# Where to unpack sources
-checkoutroot = '~/AppImages/Sources'
-
-# the prefix to configure/install modules to (must have write access)
-prefix = '~/AppImages/Install'
+# Where to put the tarballs, sources and install prefix
+if os.environ.get('BUNDLE_ROOT') is not None:
+ tarballdir = os.environ.get('BUNDLE_ROOT') + '/Tarballs'
+ checkoutroot = os.environ.get('BUNDLE_ROOT') + '/Sources'
+ prefix = os.environ.get('BUNDLE_ROOT') + '/Install'
+else:
+ tarballdir = '~/AppImages/Tarballs'
+ checkoutroot = '~/AppImages/Sources'
+ prefix = '~/AppImages/Install'
# Dont put anything into a lib64 directory, whether we build for
# 32bit linux or 64bit linux, we want a constant path for the libraries
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]