Author: esr
Date: Thu Mar 27 17:36:33 2008
New Revision: 25194

URL: http://svn.gna.org/viewcvs/wesnoth?rev=25194&view=rev
Log:
Use AddPostAction to do fifo creation right.

Modified:
    trunk/SConstruct

Modified: trunk/SConstruct
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/SConstruct?rev=25194&r1=25193&r2=25194&view=diff
==============================================================================
--- trunk/SConstruct (original)
+++ trunk/SConstruct Thu Mar 27 17:36:33 2008
@@ -670,15 +670,16 @@
     ])
 
 wesnothd_env = env.Clone()
+wesnothd_env.TargetSignatures('build')
 # FIXME: Only works under Unixes
-fifobuilder = wesnothd_env.Command(bindir, '', [
-    Mkdir(fifodir),
-    Chmod(fifodir, 0700),
-    ])
-env.Alias("install-wesnothd", [ \
-    wesnothd_env.Install(bindir, wesnothd),
-    #wesnothd_env.Install(fifodir, fifobuilder),
-    ])
+from os import access, F_OK
+install_wesnothd = wesnothd_env.Install(bindir, wesnothd)
+env.Alias("install-wesnothd", install_wesnothd)
+if not access(fifodir, F_OK):
+    wesnothd_env.AddPostAction(install_wesnothd, [
+        Mkdir(fifodir),
+        Chmod(fifodir, 0700),
+        ])
 
 env.Alias("install-campaignd", env.Clone().Install(bindir, campaignd))
 


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to