From: Alan T. DeKok Date: Wed, 15 Jan 2025 16:02:38 +0000 (-0500) Subject: fix up header now that we use BEGIN PROTOCOL X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=affdaae5a250cd1a4b309aeaef344b9a1dea75f2;p=thirdparty%2Ffreeradius-server.git fix up header now that we use BEGIN PROTOCOL --- diff --git a/src/include/all.mk b/src/include/all.mk index c326b51ef96..09228632407 100644 --- a/src/include/all.mk +++ b/src/include/all.mk @@ -76,7 +76,7 @@ HEADERS_DY += protocol/base.h src/include/protocol/base.h: $(wildcard share/dictionary/*/dictionary) $(wildcard share/dictionary/eap/*/dictionary) | src/include/protocol @echo HEADER $(patsubst src/include/%,%,$@) ${Q}echo "#pragma once" > $@ - ${Q}for X in $^; do grep ^PROTOCOL $$X | ${NORMALIZE} | awk '{print "#define FR_PROTOCOL_"$$2" " $$3 " //!< AUTOGENERATED PROTOCOL NUMBER DEFINITION"}' >> $@; done + ${Q}for X in $^; do grep -w PROTOCOL $$X | egrep -v 'END' | sed 's/BEGIN //' | ${NORMALIZE} | awk '{print "#define FR_PROTOCOL_"$$2" " $$3 " //!< AUTOGENERATED PROTOCOL NUMBER DEFINITION"}' >> $@; done # Add our dynamic headers to the header manifest so they get