diff mbox series

[v2,2/4] base-files: use $(COMMITCOUNT) in PKG_RELEASE

Message ID 20210119222034.4018694-2-mail@aparcar.org
State Accepted
Delegated to: Paul Spooren
Headers show
Series [v2,1/4] rules: add AUTORELEASE and COMMITCOUNT variables | expand

Commit Message

Paul Spooren Jan. 19, 2021, 10:20 p.m. UTC
The newly added `$(COMMITCOUNT)` varialbe allows automatic versioning
based on the number of Git commits of a package. Replace *tedious to
bump* and *merge conflict causing* `PKG_RELEASE` and replace it with
`$(COMMITCOUNT)`.

Signed-off-by: Paul Spooren <mail@aparcar.org>
---
 package/base-files/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/package/base-files/Makefile b/package/base-files/Makefile
index f18f221129..d134641cb9 100644
--- a/package/base-files/Makefile
+++ b/package/base-files/Makefile
@@ -12,8 +12,8 @@  include $(INCLUDE_DIR)/version.mk
 include $(INCLUDE_DIR)/feeds.mk
 
 PKG_NAME:=base-files
-PKG_RELEASE:=246
 PKG_FLAGS:=nonshared
+PKG_RELEASE:=$(COMMITCOUNT)
 
 PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
 PKG_BUILD_DEPENDS:=usign/host ucert/host