build systems: move git_sha1_gen.sh to bin/
[mesa.git] / src / SConscript
index 5e1171b5246b08e53960197a3ef3aaf5e9596628..37b3f8572e25a28dee7fbb6c64eef9131998327b 100644 (file)
@@ -24,9 +24,9 @@ def write_git_sha1_h_file(filename):
 
     tempfile = "git_sha1.h.tmp"
     with open(tempfile, "w") as f:
-        args = [ 'sh', Dir('#').abspath + '/git_sha1_gen.sh' ]
+        args = [ 'sh', Dir('#').abspath + '/bin/git_sha1_gen.sh' ]
         try:
-            subprocess.Popen(args, stdout=f)
+            subprocess.Popen(args, stdout=f).wait()
         except:
             print "Warning: exception in write_git_sha1_h_file()"
             return