diff options
author | Tristan Van Berkom <tristan@upstairslabs.com> | 2013-12-16 00:44:46 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan@upstairslabs.com> | 2013-12-16 00:44:46 +0900 |
commit | 3f3818e4f08f979082d71b752f0f43cd6b44f8dc (patch) | |
tree | 420b6e41e8043346f2c7d9eeebcd8561a004e8e0 /build | |
parent | dbebe555984337191f88d49a3f5723de3254f255 (diff) | |
download | glade-3f3818e4f08f979082d71b752f0f43cd6b44f8dc.tar.gz |
build/linux/jhbuildrc: Allow the user to decide where to build the bundle
Checks the BUNDLE_ROOT environment variable.
Diffstat (limited to 'build')
-rw-r--r-- | build/linux/jhbuildrc | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/build/linux/jhbuildrc b/build/linux/jhbuildrc index 57dcb834..3bf2a04f 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 |