Scripting buildpackage for maint tools
Ben Hutchings
ben at decadent.org.uk
Sun Jul 11 22:36:56 UTC 2010
On Wed, 2010-07-07 at 13:37 -0600, Tim Gardner wrote:
> On 07/07/2010 01:30 PM, Steve Conklin wrote:
> > I wasted some time today by not running fakeroot debian/rules clean
> > before building a kernel package for upload to a PPA, so I added the
> > clean to the script I've been using. I'd like to add that to our maint
> > tools scripts, but I thought I'd run it past the team for comments
> > first.
> >
> > I've seen this documented for kernel use both with and without the
> > ignore flags for the .git files. It seems correct to me to ignore them.
> >
> > Here's what it looks like, am I missing anything?:
> >
> > #!/bin/bash
> > fakeroot debian/rules clean
> > dpkg-buildpackage -S -rfakeroot -I.git -I.gitignore -i'\.git.*'
> >
> >
> >
>
> The '-I.git*' options are definitely required.
>
> The dpkg-buildpackage line should also wild-card any command line
> options, e.g.,
>
> dpkg-buildpackage -S -rfakeroot -I.git -I.gitignore -i'\.git.*' $*
[...]
dpkg-source actually has sensible ignore patterns built in, so for most
packages you can just use '-I -i'.
Ben.
--
Ben Hutchings
Once a job is fouled up, anything done to improve it makes it worse.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20100711/1d981ce9/attachment.sig>
More information about the kernel-team
mailing list