Update of /cvsroot/super-tux/supertux
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23085
Modified Files:
SConstruct
Log Message:
make glob rule robust against non-existant directories
Index: SConstruct
===================================================================
RCS file: /cvsroot/super-tux/supertux/SConstruct,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- SConstruct 18 Nov 2004 21:26:54 -0000 1.13
+++ SConstruct 19 Nov 2004 00:01:24 -0000 1.14
@@ -6,9 +6,13 @@
import os, fnmatch
files = []
for dir in dirs:
- for file in os.listdir( Dir(dir).srcnode().abspath ):
- if fnmatch.fnmatch(file, pattern) :
- files.append( os.path.join( dir, file ) )
+ try:
+ for file in os.listdir( Dir(dir).srcnode().abspath ):
+ if fnmatch.fnmatch(file, pattern) :
+ files.append( os.path.join( dir, file ) )
+ except:
+ print "Warning, couldn't find directory " + dir
+
return files
# thanks to Michael P Jung
@@ -84,7 +88,7 @@
if env['VARIANT'] == "optimize":
- env.Append(CXXFLAGS = "-O2 -g")
+ env.Append(CXXFLAGS = "-O2 -g -Wall")
elif env['VARIANT'] == "debug":
env.Append(CXXFLAGS = "-O0 -g3 -Wall -Werror")
env.Append(CPPDEFINES = { "DEBUG":"1" })
|