On ke, 2010-12-29 at 18:27 +0100, Raphael Hertzog wrote:
> On Wed, 29 Dec 2010, Lars Wirzenius wrote:
> > On ke, 2010-12-29 at 14:06 +0100, Raphael Hertzog wrote:
> > > Hi,
> > > 
> > > On Wed, 29 Dec 2010, Lars Wirzenius wrote:
> > > > The dpkg-source manpage says:
> > > > 
> > > >        --before-build directory
> > > >               This  command  should  be called before any build of the 
> > > > package
> > > > 
> > > > What is the "directory" argument to the option? Should it be "command" 
> > > > instead?
> > > 
> > > No, it's really "directory". It's the same "directory" parameter that
> > > -b gets (i.e. the unpacked source tree).
> > 
> > Then I must admit utter confusion about this. What is the command that
> > gets called?
> 
> "dpkg-source --before-build foo" is the command. You (can) call it. And it
> does whatever the source format decided to do in this hook.
> 
> In practice, those commands are called by dpkg-buildpackage and it's
> their main purpose. Prepare the source tree for the build. Clean up
> afterwards. In a source-format specific way.

Ah, then I entirely missed the point of the options. I thought they were
running some kind of shell scripts. Never mind then: to understand these
options one needs to understand more of the new kinds of source package
formats, and I didn't know they have hooks like that.

-- 
Blog/wiki/website hosting with ikiwiki (free for free software):
http://www.branchable.com/




-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to