warn when submodules are not initialized
This commit is contained in:
parent
b06bef6351
commit
6a8e7b4b4b
@ -1,6 +1,13 @@
|
|||||||
# vim:filetype=python
|
# vim:filetype=python
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
env = Environment(LIBS = ['GL', 'GLU'])
|
env = Environment(LIBS = ['GL', 'GLU'])
|
||||||
env.ParseConfig('sdl-config --cflags --libs')
|
env.ParseConfig('sdl-config --cflags --libs')
|
||||||
|
|
||||||
env.Program('wfobj-view', [Glob('*.cc'), Glob('wfobj/WFObj.cc')])
|
env.Program('wfobj-view', [Glob('*.cc'), Glob('wfobj/WFObj.cc')])
|
||||||
|
|
||||||
|
if len(os.listdir('wfobj')) == 0:
|
||||||
|
sys.stderr.write('Warning: wfobj submodule not initialized\n')
|
||||||
|
sys.stderr.write('Warning: perhaps you should run `git submodule update --init`\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user