On Fri, 2005-08-12 at 00:44 -0500, DJ Lucas wrote:
> First...does anyone already have a gcc4 profile made up?
Not as of yet, if you want to help make one, patches are always
welcome. :)
>
> If not, then how does one assign a variable on the fly? The immediatley
> obvious answer is to use <execute command="VARIABLE=foo" />, but upon
> thinking about that a bit more, VARIABLE=foo is not a command. Will
> that work? I've not tried yet. Also, in the same set of commands,
> instead of variable substitution, will `backtic` substitution in param
> tags work? Basically, I don't want to fire this off and have it waste
Yes backticks will work, an execute element is basically the equivalent
for bash -c 'command'.
>
> Here is are the samples in hopes somebody will just give me the correct
> answer to study ;-) :
>
<snip>
> <execute command="rm">
> <param>-f</param>
> <param>`grep -l 'DO NOT EDIT THIS FILE'</param>
> <param>`gcc -print-search-dirs | head -n 1 | awk '{ print $2
> "include" }'`/*</param>
> </execute>
> <!-- End new specfile dump and change -->
Everything looks good.
Thomas
--
http://linuxfromscratch.org/mailman/listinfo/alfs-discuss
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page