[cig-commits] commit: Added support to check out a "--with-experimental" version. `./obtainrepositories.py --with-experimental=1` and `./configure.py --with-experimental=1` are required.
Mercurial
hg at geodynamics.org
Mon Feb 1 15:29:47 PST 2010
changeset: 191:74da05cfcccf
parent: 164:8fcfc1590d4c
user: jspencer at Stibbons
date: Wed Nov 25 15:19:11 2009 +1100
files: SConstruct obtainRepositories.py
description:
Added support to check out a "--with-experimental" version. `./obtainrepositories.py --with-experimental=1` and `./configure.py --with-experimental=1` are required.
diff -r 8fcfc1590d4c -r 74da05cfcccf SConstruct
--- a/SConstruct Mon Oct 12 13:47:08 2009 +1100
+++ b/SConstruct Wed Nov 25 15:19:11 2009 +1100
@@ -111,6 +111,12 @@ if env['with_glucifer']:
duplicate=0)
env.Prepend(LIBS=['glucifer'])
+if env['with_experimental']:
+ SConscript('Experimental/SConscript',
+ variant_dir=env['build_dir'] + '/Experimental',
+ duplicate=0)
+ env.Prepend(LIBS=['experimental'])
+
#
# Build static version of StGermain.
#
diff -r 8fcfc1590d4c -r 74da05cfcccf obtainRepositories.py
--- a/obtainRepositories.py Mon Oct 12 13:47:08 2009 +1100
+++ b/obtainRepositories.py Wed Nov 25 15:19:11 2009 +1100
@@ -3,7 +3,7 @@ from mercurial import hg, ui, util
from mercurial import hg, ui, util
import urllib2
import ConfigParser
-import os, errno
+import os, errno, sys
# hacky way to find out what the name of the branch is
branch = os.popen('hg branch').readlines()
@@ -19,6 +19,10 @@ deps = [ \
['https://csd.vpac.org/hg/StGermain', 'StGermain' ], \
['https://csd.vpac.org/hg/StgFEM', 'StgFEM' ], \
['https://www.mcc.monash.edu.au/hg/Underworld', 'Underworld' ] ]
+
+# Check for run time flags
+if( len(sys.argv) > 1 and sys.argv[1] == "--with-experimental=1"):
+ deps.append(['https://www.mcc.monash.edu.au/hg/Experimental', 'Experimental']);
# Make sure the '.hg' directory exists
try:
More information about the CIG-COMMITS
mailing list