--- a/demos/SConscript Wed Apr 09 00:29:11 2008 +0200
+++ b/demos/SConscript Wed Apr 09 11:35:59 2008 +0200
@@ -1,24 +1,14 @@
Import('pymodule')
env = Environment()
-env.Append(BUILDERS = {'Touch':Builder(action=Action(''), single_source=True)})
env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
-env.Touch('boxes.py')
-env.Touch('buddha.py')
-env.Touch('bunny.py')
-env.Touch('car.py')
-env.Touch('dragon.py')
-env.Touch('spheres_ao.py')
-env.Touch('spheres_glass.py')
-env.Touch('spheres_shadow.py')
-env.Touch('triangles_monkey.py')
-env.Touch('triangles_sphere.py')
+files = [
+ 'boxes.py', 'buddha.py', 'bunny.py', 'car.py', 'dragon.py',
+ 'spheres_ao.py', 'spheres_glass.py', 'spheres_shadow.py',
+ 'triangles_monkey.py', 'triangles_sphere.py',
+ 'objreader.py', 'plyreader.py', 'lworeader.py']
-env.Touch('objreader.py')
-env.Touch('plyreader.py')
-env.Touch('lworeader.py')
+for file in files:
+ env.Copy('#build/demos/'+file, file)
-env.Touch('monkey.obj')
-env.Touch('sphere.obj')
-
-env.Copy(str(pymodule[0]).split('/')[-1], str(pymodule[0]))
+env.Copy('#build/demos/'+str(pymodule[0]).split('/')[-1], str(pymodule[0]))