Modify ↓
#57 closed enhancement (fixed)
Add "configure" script command.
Reported by: | chandlerc@… | Owned by: | cmlenz |
---|---|---|---|
Priority: | minor | Milestone: | 0.5 |
Component: | Recipe commands | Version: | dev |
Keywords: | Cc: | ||
Operating System: |
Description
The vast majority of packages in the *nix world use some form of "configure" script. Would it be useful to have a <c:configure> command to call this script? It can be done as is by the following:
<sh:exec file="./configure" args="--quiet CFLAGS=-O3 CXXFLAGS=-O2">
However this is understandably awkward, and needs fancy quoting practices to include more than one CFLAG.
Attachments (0)
Change History (2)
comment:1 Changed 19 years ago by chandlerc@…
comment:2 Changed 19 years ago by cmlenz
- Milestone set to 0.5
- Resolution set to fixed
- Status changed from new to closed
Implemented in [247].
Note that features in with/without and packages in enable/disable are simply space separated.
Note: See
TracTickets for help on using
tickets.
My proposed syntax is:
<c:configure cflags="..." cxxflags="..." with="foo, bar, foobar" enable="foo, bar, foobar" />
Which would result in the following command being executed:
# ./configure --quiet --with-foo --with-bar --with-foobar --enable-foo --enable-bar --enable-foobar CFLAGS="..." CXXFLAGS="..."
Other arguments could perhaps be without and disable. Some other variable-setting arguments should also be provided.