On 03/07/2012 06:33 PM, Neil Williams wrote:
> Even with such calls, I don't see how to remove a single line from
> a .install file using dpkg-vendor. (Typically this is necessary when
> the line in question contains a wildcard but the modified build means
> that no files can exist which match said wildcard.)
>   

What you would do in such case is renaming debian/*.install into
something like install.in, then you would do a sed or something
similar so that you can replace a variable by the content depending
on the return of dpkg-vendor.

Example:

$ cat debian/install.in
__BAR__

then in your debian/rules

override_dh_install:
  if dpkg-vendor--derives-from ubuntu ; then \
    sed s|__BAR__|<whatever>| debian/install.in >debian/install \
  else
    sed s|__BAR__|<you-like>| debian/install.in >debian/install \
  fi
  dh_install

Of course, cleaning debian/install in the clean target is a
good idea too.

If you need to remove a single line, just don't do that, instead
replace __BAR__ by nothing.

There must of course be many other ways to do that.

Cheers,

Thomas


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4f5773b0.1060...@debian.org

Reply via email to