[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Keep directory in working tree, but exclude from foo.diff.gz



Hi,

On Sun, Apr 27, 2008 at 02:33:44PM +1000, Ben Finney wrote:
> Osamu Aoki <osamu@debian.org> writes:
> 
> > On Thu, Apr 24, 2008 at 10:31:21PM -0400, Felipe Sateler wrote:
> > > Ben Finney wrote:
> > >  
> > > > What would be the best way to keep such a directory in place, but
> > > > exclude the directory from the Debian source and binary packages?
> > > 
> > > dpkg-source -i"regexp"?
> > 
> > I am too lazy to type extra regexp
> > 
> > I have ~/.devscripts with:
> > DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -ICVS -I.svn -I.git"
> 
> This doesn't have the same effect. The '-iEXCLUDE_REGEXP' option omits
> files matching the Perl regexp 'EXCLUDE_REGEXP' from the 'foo.diff.gz'
> Debian diff file. The '-IEXCLUDE_GLOB' option will omit files matching
> the shell glob 'EXCLUDE_GLOB' from the 'foo.orig.tar.gz' tarball.

Yes.  This was what I usually wanted as my packaging environment to exclude VCS
data from all source package files.  (Initially, .svn and .git needed to be
excluded manually as I remember.)

Now that I checked latest command, -i and -I without argument seems to
be good enough since current default regexp is very exhaustive.

So this is good enough.
> > DEBUILD_DPKG_BUILDPACKAGE_OPTS="-i -I"

It was good for me to check the latest command situation.

Osamu

PS: These exclusion lists are impressive.

 -i defaults to this regex: 
(?:^|/).*~$|(?:^|/)\.#.*$|(?:^|/)\..*\.swp$|(?:^|/),,.*(?:$|/.*$)|(?:^|/)(?:DEADJOE|\.cvsignore|\.arch-inventory|\.bzrignore|\.gitignore)$|(?:^|/)(?:CVS|RCS|\.deps|\{arch\}|\.arch-ids|\.svn|\.hg|_darcs|\.git|\.shelf|_MTN|\.bzr(?:\.backup|tags)?)(?:$|/.*$)')

-I defaults to:
-I*.a -I*.la -I*.o -I*.so -I*.swp -I*~ -I,,* -I.[#~]* -I.arch-ids -I.arch-inventory -I.bzr -I.bzr.backup -I.bzr.tags -I.bzrignore -I.cvsignore -I.deps -I.git -I.gitignore -I.hg -I.shelf -I.svn -ICVS -IDEADJOE -IRCS -I_MTN -I_darcs -I{arch}


Reply to: