Re: Debian vs. Ubuntu source control file
Lucas Nussbaum wrote:
> Anyway, to avoid modifying debian/control directly, it's easy to add an
> additional substvar (ubuntu:Browser?):
> debian/control:
> Depends: [...], iceweasel | ${ubuntu:Browser}
Doesn't that leave a dangling "|" if you're building for Debian?
I'd suggest in debian/control something like:
Depends: [...], ${browsers}
And then in debian/rules:
ifneq ($(DEB_VENDOR),ubuntu)
BROWSERS = "iceweasel"
else
BROWSERS = "iceweasel | abrowser"
endif
[...]
dh_gencontrol -- -Vbrowsers=$(BROWSERS)
Cheers,
FJP
Reply to: