treewide: remove COMMITCOUNT
authorKuan-Yi Li <kyli@abysm.org>
Sat, 10 Jun 2023 03:43:42 +0000 (11:43 +0800)
committerTianling Shen <cnsztl@immortalwrt.org>
Wed, 14 Jun 2023 05:47:52 +0000 (13:47 +0800)
commit7d5fc0878eacfb2c6eb7eeca316b593a5a257411
tree38b95a984e339788591fbe4d40aef14367f689de
parent84a7e3e6d84a39dba7e056128b19b27b0e371da2
treewide: remove COMMITCOUNT

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 <kyli@abysm.org>
(cherry picked from commit ba75322534f73923f7c1f457aca9e461aea57c16)
utils/attendedsysupgrade-common/Makefile
utils/fakeuname/Makefile