rules: fix COMMITCOUNT logic
authorPaul Spooren <mail@aparcar.org>
Wed, 27 Jan 2021 03:16:36 +0000 (17:16 -1000)
committerPaul Spooren <mail@aparcar.org>
Wed, 27 Jan 2021 03:29:49 +0000 (17:29 -1000)
commit513f7171a3e509bba54ecc2af2d6259c7cbff221
tree9233294aeced1d0d29cb56c28228b0003b1efbc4
parentff2087d9a9db86c6c5a7fec258fec66bff8e4f9c
rules: fix COMMITCOUNT logic

The newly added $(COMMITCOUNT) variable was wrongly increased by plus
one. The addition should have been only added to $(AUTORELEASE) as
OpenWrt traditionally starts counting at one rather than zero.

$(AUTORELEASE) counts the commits since the last bump, which is zero on
the version bump commit itself.

This commit increases $(AUTORELEASE) by one while leaving $(COMMITCOUNT)
as is.

The base-files package is the only package using $(COMMITCOUNT) so far
and requires a pseudo commit to keep the PKG_RELEASE correct. A non
functional change (Copyright bump) is done in the next commit.

Signed-off-by: Paul Spooren <mail@aparcar.org>
rules.mk