treewide: remove AUTORELEASE 1043/head
authorSven Eckelmann <sven@narfation.org>
Sat, 3 Feb 2024 07:56:13 +0000 (08:56 +0100)
committerSven Eckelmann <sven@narfation.org>
Sat, 3 Feb 2024 07:56:13 +0000 (08:56 +0100)
commit076a2750dd7758950400a20bbc9b9a09440bed4a
tree3d09588a56c98ffab443c001282560f4b0b7e1eb
parent777c115b0a6336d6582c5992d25b631b6d6d21fd
treewide: remove AUTORELEASE

Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used. Since commit 2584b0cecae ("CI: deprecate $(AUTORELEASE) via
comments"), this is even announced by the CI

The following temporary change was made to the core:

    diff --git a/rules.mk b/rules.mk
    index 57d7995d4fa8..f16367de87a8 100644
    --- a/rules.mk
    +++ b/rules.mk
    @@ -429,7 +429,7 @@ endef
     abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

     COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
    -AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
    +AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

     all:
     FORCE: ;

And this command used to fix affected packages:

    ./scripts/feeds install -a routing
    for i in $(cd feeds/routing; git grep -l 'PKG_RELEASE:=.*AUTORELEASE' | \
                                  sed 's^.*/\([^/]*\)/Makefile^\1^';);
    do
      make package/${i%/Makefile}/download
    done

Signed-off-by: Sven Eckelmann <sven@narfation.org>
alfred/Makefile
batctl/Makefile
batman-adv/Makefile
mcproxy/Makefile
minimalist-pcproxy/Makefile
naywatch/Makefile
olsrd/Makefile
oonf-dlep-radio/Makefile
pimbd/Makefile
prince/Makefile
vis/Makefile