Package: dpkg-dev
Version: 1.16.0.3
Severity: wishlist

dpkg-source(1);

       --extend-diff-ignore=regexp
              The perl regular expression specified will extend the default
              regular expression associated to -i  by concatenating   "|regexp"
              to   the default   regexp.    This  option  is  convenient  to
              use  in debian/source/options to exclude some auto-generated
              files from the automatic patch generation.

[...]

   debian/source/options
       This  file contains a list of long options that should be automatically
       prepended to the set of command line options of a dpkg-source -b or
       dpkg-source --print-format call. Options like  --compression  and
       --compression-level are well suited for this file.

       Each option should be put on a separate line. Empty lines and lines
       starting with "#" are ignored. The lead‐ ing "--" should be stripped and
       short options are not allowed. Optional spaces are allowed  around  the
       "=" symbol and optional quotes are allowed around the value.  Here's an
       example of such a file:

         # let dpkg-source create a debian.tar.bz2 with maximal compression
         compression = "bzip2"
         compression-level = 9
         # use debian/patches/debian-changes as automatic patch
         single-debian-patch

       Note: format options are not accepted in this file, you should use
       debian/source/format instead.

http://raphaelhertzog.com/2011/01/28/3-ways-to-not-clutter-your-debian-source-package-with-autogenerated-files/:

  For example if you want to ignore changes made on the files “config.sub”,
  “config.guess” and “Makefile” you could put this in debian/source/options:

  # Don't store changes on autogenerated files
  extend-diff-ignore = "(^|/)(config\.sub|config\.guess|Makefile)$"


While it should be obvious, it took me a while to connect the dots
here. Would it be possible to include the extended-diff-ignore example
in dpkg-source(1)'s FILE FORMATS section? This is a pretty common
issue and people like cut-and-paste examples. :)

Thanks,
Christoph
-- 
c...@df7cb.de | http://www.df7cb.de/

Attachment: signature.asc
Description: Digital signature

Reply via email to