Add -u support to scons target@host support
g0dil [Tue, 29 Sep 2009 15:00:36 +0000 (15:00 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1459 270642c3-0616-0410-b53a-bc976706d245

SConstruct

index d9e8cc3..d8c0510 100644 (file)
@@ -212,5 +212,8 @@ for target in COMMAND_LINE_TARGETS:
         cwd=env.GetLaunchDir()
         home=os.environ['HOME']+'/'
         if cwd.startswith(home) : cwd = cwd[len(home):]
+        args = [ '$SCONSARGS' ]
+        if env.GetLaunchDir() != os.getcwd():
+            args.append('-u')
         env.PhonyTarget(target, [], [ "ssh $HOST scons $SCONSARGS -C $DIR $RTARGET" ],
-                        HOST=host, RTARGET=realtarget, DIR=cwd)
+                        HOST=host, RTARGET=realtarget, DIR=cwd, SCONSARGS=args)