[Dune] [Dune-Commit] dune-common r5298 - trunk/bin

Christian Engwer christi at uni-hd.de
Fri Oct 3 15:12:10 CEST 2008


> > example:
> > dunecontrol --opts=optsfile autogen:configure:make
> > would do exactly the same as
> > dunecontrol --opts=optsfile all
> > 
> > This feature will change in the future, as it does not allow different
> > parameters for the different commands.
> 
> But why would you want to use a single dunecontrol call if each
> command should be called with different parameters?  Wouldn't you just
> use several calls?

No, think of dunecontrol all.

you want something like

foreach module in modules do
  foreach command in [autogen, configure, make] do
    run command parameters[command]
  done
done

It is rather difficult to add parameters for the different
commands. The current way is to specify an opts file.

but being able to doing something like

dunecontrol autogen : configure --enable-experimental-feature : make all check

would be quite nice.

Or, if you are testing some m4 stuff, you don't want to run make all
the time, so you'd like to run

dunecontrol autogen : configure --enable-new-feature

to test it, and the perhaps

dunecontrol autogen : configure --enable-new-feature CXX=othercompiler

and you would not want to write opts files for all different
combination you try out.

Christian




More information about the Dune mailing list