Scripting buildpackage for maint tools

Tim Gardner tim.gardner at canonical.com
Wed Jul 7 19:37:59 UTC 2010


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.*' $*

I will quite often build a source package without signing it using '-uc 
-us' so that I can remotely sign it (using debsign -r) from my local 
development machine whilst creating the package on a server near the DC.

rtg

-- 
Tim Gardner tim.gardner at canonical.com




More information about the kernel-team mailing list