Do not climb if a command starts by 'configure'

This commit is contained in:
Thomas Nagy 2014-01-25 23:38:29 +01:00
parent 173cd3beca
commit 4a0a7106c4
2 changed files with 4 additions and 6 deletions

View File

@ -2,9 +2,6 @@
# encoding: utf-8
# Example using the `remote` tool.
# Important! this requires ``export NO_CLIMB=1`` when run in the waf folder!
from waflib import Utils
top = '.'

View File

@ -45,9 +45,10 @@ def waf_entry_point(current_directory, version, wafdir):
no_climb = os.environ.get('NOCLIMB', None)
if not no_climb:
for k in no_climb_commands:
if k in sys.argv:
no_climb = True
break
for y in sys.argv:
if y.startswith(k):
no_climb = True
break
# try to find a lock file (if the project was configured)
# at the same time, store the first wscript file seen