From: g0dil Date: Tue, 29 Sep 2009 15:00:36 +0000 (+0000) Subject: Add -u support to scons target@host support X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=b817a4fde1ea04cb45a9912dd7aaf2657e66cc8d;p=senf.git Add -u support to scons target@host support git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1459 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/SConstruct b/SConstruct index d9e8cc3..d8c0510 100644 --- a/SConstruct +++ b/SConstruct @@ -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)