Re: Keep directory in working tree, but exclude from foo.diff.gz (was: dh_clean and explicit package clean lists)
"Paul Wise" <pabs@debian.org> writes:
> You probably want a custom regex in the -i option to dpkg-source.
The biggest problem here is I don't want to lose the effect of the
*existing* buildpackage ignore list that 'dpkg-source' uses. I just
want to ignore an *additional* directory.
So it seems the only option being presented so far is to repeat the
entire, unwieldy thing, insert a pattern into it, and hope that I
haven't messed up the regex.
> Using debuild and DEBUILD_DPKG_BUILDPACKAGE_OPTS in ~/.devscripts is
> a good way to prevent the need to add it to the dpkg-buildpackage
> command-line every time you run it.
This '$HOME/.devscripts' file is not having the desired effect:
=====
# $HOME/.devscripts
# Configuration for Debian developer scripts
# Options to pass to dpkg-buildpackage
tar_ignore_opts="-I.svn -I.git -I.bzr -I.shelf -I.be"
diff_ignore_opts="-i '# Ignore general backup files
(?:^|/).*~$|
# Ignore emacs recovery files
(?:^|/)\.#.*$|
# Ignore vi swap files
(?:^|/)\..*\.swp$|
# Ignore baz-style junk files or directories
(?:^|/),,.*(?:$|/.*$)|
# File-names that should be ignored (never directories)
(?:^|/)(?:DEADJOE|\.cvsignore|\.arch-inventory|\.bzrignore|\.gitignore)$|
# File or directory names that should be ignored
(?:^|/)(?:CVS|RCS|\.deps|\{arch\}|\.arch-ids|\.svn|\.hg|_darcs|\.git|
\.shelf|_MTN|\.be|\.bzr(?:\.backup|tags)?)(?:$|/.*$)
'"
DEBUILD_DPKG_BUILDPACKAGE_OPTS="${diff_ignore_opts} ${tar_ignore_opts}"
=====
The package, when built, still has the '.be/' directory in the
'foo.diff.gz'. Setting 'export DH_VERBOSE=1' in the 'debian/rules'
file doesn't show the commandline options given to 'dpkg-source', so I
don't know if it's even using the '$HOME/.devscripts' settings.
How can I achieve the above correctly?
--
\ "Just because nobody complains doesn't mean all parachutes are |
`\ perfect." -- Benny Hill |
_o__) |
Ben Finney
Reply to: