]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix up header now that we use BEGIN PROTOCOL
authorAlan T. DeKok <aland@freeradius.org>
Wed, 15 Jan 2025 16:02:38 +0000 (11:02 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 15 Jan 2025 16:02:38 +0000 (11:02 -0500)
src/include/all.mk

index c326b51ef96adf85a080668d70446cc9948c9c15..09228632407cda0418e9d28dbef7f4f32ffadccd 100644 (file)
@@ -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