From: Alan T. DeKok Date: Sun, 9 May 2021 19:30:24 +0000 (-0400) Subject: only print out top-level attributes X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aaa703da57c2096d570942b6dc775cdf6eb3fef9;p=thirdparty%2Ffreeradius-server.git only print out top-level attributes as the names for sub-attributes are not qualified by the parents name. In order to do this properly, we should change the series of shell commands with grep / awk into a Perl script. Probably by copying scripts/dict/format.pl and changing it. --- diff --git a/src/include/all.mk b/src/include/all.mk index f332f74cd87..0debbcd08d0 100644 --- a/src/include/all.mk +++ b/src/include/all.mk @@ -61,7 +61,7 @@ src/include/$(1): $(2) ${Q}test -e $$@ || mkdir -p $$(dir $$@) ${Q}echo "#pragma once" > $$@ ${Q}grep ^PROTOCOL $$< | ${NORMALIZE} | awk '{print "#define FR_PROTOCOL_"$$$$2" " $$$$3 " //!< AUTOGENERATED PROTOCOL NUMBER DEFINITION"}' >> $$@ - ${Q}grep ^ATTRIBUTE $$< | ${NORMALIZE} | awk '{print "#define FR_"$$$$2 " " $$$$3 " //!< AUTOGENERATED ATTRIBUTE DEFINITION"}' >> $$@ + ${Q}grep ^ATTRIBUTE $$< | egrep -v '[ ]\.' | ${NORMALIZE} | awk '{print "#define FR_"$$$$2 " " $$$$3 " //!< AUTOGENERATED ATTRIBUTE DEFINITION"}' >> $$@ ${Q}grep ^STRUCT $$< | ${NORMALIZE} | awk '{print "#define FR_"$$$$2 " " $$$$3 " //!< AUTOGENERATED ATTRIBUTE DEFINITION"}' >> $$@ ${Q}grep ^VALUE $$< | ${NORMALIZE} | awk '{print "#define FR_"$$$$2"_VALUE_"$$$$3 " " $$$$4 " //!< AUTOGENERATED VALUE DEFINITION"}' >> $$@ endef