On Wed, Mar 30, 2016 at 04:39:17PM +0200, Santiago Ruano Rincón wrote:
> What about this?
>
> diff --git a/debian/rules b/debian/rules
> index 10e034a..3fefda0 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -1,6 +1,11 @@
> #!/usr/bin/make -f
>
> -DEBIAN_VERSION ?= $(shell LANG=C dpkg -l base-files | awk '($$1=="ii"){print
> $$3}' | cut -d. -f1 | cut -d+ -f1)
> +NEXT_VERSION_ID=$(shell ls -w1 ./security-support-ended.deb* | sort -n |
> tail -n1 | awk -F "deb" '{print $$2}')
> +
> +DEBIAN_VERSION ?= $(shell cat /etc/debian_version | grep '[0-9.]' | cut -d.
> -f1)
> +ifeq (,$(DEBIAN_VERSION))
> + DEBIAN_VERSION=$(NEXT_VERSION_ID)
> +endif
>
I'm not familiar enough with this package to tell, but if that does
what you want, yes, I suppose it would be better.
Beware, however, that in a future there might be a file named
security-support-ended.deb10 and the sort could not work as expected.
If the release is for jessie, I would try to keep it simple:
DEBIAN_VERSION = 8
Isn't this why we have branches in git repositories?
Thanks.