treewide: remove COMMITCOUNT
authorKuan-Yi Li <[email protected]>
Sat, 10 Jun 2023 03:43:42 +0000 (11:43 +0800)
committerPaul Spooren <[email protected]>
Tue, 13 Jun 2023 13:55:02 +0000 (15:55 +0200)
Automatically compute and substitute current values for all
$(COMMITCOUNT) instances as this feature is deprecated and shouldn't be
used.

Based on commit 0c10c224be81:

Change COMMITCOUNT in rules.mk to:
```
COMMITCOUNT = $(if $(DUMP),0,$(shell sed -i "s/\$$(COMMITCOUNT)/$(call commitcount)/" $(CURDIR)/Makefile))
```

then update all affected packages by:
```
for i in $(git -C feeds/packages grep -l COMMITCOUNT | sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
make package/$i/clean
done
```

Signed-off-by: Kuan-Yi Li <[email protected]>
utils/attendedsysupgrade-common/Makefile
utils/fakeuname/Makefile

index 766e8b0b9dc4ed664a7b29e75027abdb4ce0fadd..5baa05d923a9c1e9cbefdd20c1c0ada71a37acd4 100644 (file)
@@ -3,7 +3,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=attendedsysupgrade-common
-PKG_VERSION:=$(COMMITCOUNT)
+PKG_VERSION:=8
 PKG_LICENSE:=GPL-2.0
 
 include $(INCLUDE_DIR)/package.mk
index 26419bc2bcde0c332e820223d3a2811a8f92e1f7..7d2b3fb030db30779e6d1fb35768cf85b3e35ad9 100644 (file)
@@ -5,7 +5,7 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=fakeuname
-PKG_RELEASE:=$(COMMITCOUNT)
+PKG_RELEASE:=1
 PKG_LICENSE:=GPL-2.0-or-later
 
 PKG_MAINTAINER:=Sergey V. Lobanov <[email protected]>