From 6a8e7b4b4b7e7e66b346a5de664af8b65b861770 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 26 Apr 2011 09:10:04 -0400 Subject: [PATCH] warn when submodules are not initialized --- SConstruct | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SConstruct b/SConstruct index 93b6cc9..ed03465 100644 --- a/SConstruct +++ b/SConstruct @@ -1,6 +1,13 @@ # vim:filetype=python +import os +import sys + env = Environment(LIBS = ['GL', 'GLU']) env.ParseConfig('sdl-config --cflags --libs') 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')