You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
726 B
26 lines
726 B
#!/usr/bin/python |
|
|
|
from __future__ import print_function |
|
import subprocess |
|
import os.path as p |
|
import sys |
|
|
|
d = p.dirname(p.realpath(__file__)) |
|
waf_light = p.join(d, 'modules', 'waf', 'waf-light') |
|
|
|
try: |
|
subprocess.check_call(['python', waf_light] + sys.argv[1:]) |
|
except subprocess.CalledProcessError as e: |
|
if e.returncode != 2 or p.isfile(waf_light): |
|
raise e |
|
|
|
print('Missing waf submodule. Trying to get it') |
|
|
|
try: |
|
subprocess.check_call(['git', 'submodule', 'update', '--init', |
|
'modules/waf']) |
|
except subprocess.CalledProcessError: |
|
print('Could not update submodule', file=sys.stderr) |
|
sys.exit(1) |
|
|
|
print('Submodules OK, try running again')
|
|
|