[openwrt/openwrt] base-files: use $(COMMITCOUNT) in PKG_RELEASE

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 23 00:05:11 EST 2021


aparcar pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/aa589c77b4e431455f2de225bbf38a391f76aad6

commit aa589c77b4e431455f2de225bbf38a391f76aad6
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Fri Jan 1 14:18:32 2021 -1000

    base-files: use $(COMMITCOUNT) in PKG_RELEASE
    
    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 at aparcar.org>
---
 package/base-files/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the lede-commits mailing list