diff options
author | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 22:59:53 +0000 |
---|---|---|
committer | mpcomplete@google.com <mpcomplete@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-08 22:59:53 +0000 |
commit | dff2b53edba542ad4a7910e3f3310a834fa3744a (patch) | |
tree | e136d20088341fa035e578d862efd45d72c96d46 /gears/SConscript | |
parent | ad11e78cde17633162f321ad26f6d5fe81815853 (diff) | |
download | chromium_src-dff2b53edba542ad4a7910e3f3310a834fa3744a.zip chromium_src-dff2b53edba542ad4a7910e3f3310a834fa3744a.tar.gz chromium_src-dff2b53edba542ad4a7910e3f3310a834fa3744a.tar.bz2 |
Fix the Gears build:
- remove accidental print statement.
- add a check that the p4 tree is checked out where we expect it, and if not,
exit.
Review URL: http://codereview.chromium.org/6598
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gears/SConscript')
-rw-r--r-- | gears/SConscript | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gears/SConscript b/gears/SConscript index 07f06ff..55a0bff 100644 --- a/gears/SConscript +++ b/gears/SConscript @@ -28,6 +28,7 @@ # - entry.path gives the path relative to toplevel_dir. # - entry.abspath gives the absolute path. +import sys import os Import('env') @@ -39,6 +40,10 @@ env = env.Clone( PRIVATE_THIRD_PARTY_DIR = "googleclient/third_party", ) +if not os.path.exists(env.Dir('#/$OPEN_DIR').abspath): + print 'Skipping Gears build: no perforce tree checked out.' + Return() + # Argument switches # TODO: how do we detect linux vs osx? |