To what end? Realize that if this happens during an action,
it's too late to
do anything really productive with it, because all of your
rules have
already executed.
Personally, when we have to solve similar problems in our
(rather complex)
jam rigs, we generally just move those types of steps
outside the jam files.
In order to make sure that environments and what not are
configured
correctly, we already have thin wrappers (batch files, shell
scripts,
whatever), so having a batch file that does that step (and
stuffs the result
in an environment variable) may be the best option.
-Brian
----- Original Message -----
From: "Chris Stankevitz" <cstankevitz toyon.com>
To: <jamming perforce.com>
Sent: Tuesday, February 27, 2007 3:36 PM
Subject: [jamming] Executing shell command, save results to
variable
> Hi group,
>
> Is it possible to execute a shell command and save the
results as a jam
> variable? The command I want to execute and its output
is:
> wx-config --libs
>
> -pthread -L/usr/X11R6/lib -lwx_gtk2u_xrc-2.6
-lwx_gtk2u_qa-2.6
> -lwx_gtk2u_htm l-2.6 -lwx_gtk2u_adv-2.6
-lwx_gtk2u_core-2.6
> -lwx_baseu_xml-2.6 -lwx_baseu_net-2.6 -lwx_baseu-2.6
>
> Thank you!
>
> Chris
> _______________________________________________
> jamming mailing list - jamming perforce.com
> http://maillist.perforce.com/mailman/listinfo/jamming
>
>
_______________________________________________
jamming mailing list - jamming perforce.com
http://maillist.perforce.com/mailman/listinfo/jamming
|