]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix includes in installed headers
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 3 Dec 2015 19:19:03 +0000 (14:19 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 3 Dec 2015 19:19:10 +0000 (14:19 -0500)
src/include/all.mk

index e96f1471debaea77af275154d62dd0bdbd24a5d5..f5dc28a31a4be31f0854897ad1309a22f4dab3e8 100644 (file)
@@ -140,7 +140,9 @@ $(SRC_INCLUDE_DIR):
 ${SRC_INCLUDE_DIR}/%.h: src/include/%.h | $(SRC_INCLUDE_DIR)
        @echo INSTALL $(notdir $<)
        @$(INSTALL) -d -m 755 `echo $(dir $@) | sed 's/\/$$//'`
-       @sed 's/^#include <freeradius-devel/#include <freeradius/' < $< > $@
+# Expression must deal with indentation after the hash and copy it to the substitution string.
+# Hash not anchored to allow substitution in function documentation.
+       @sed -e 's/#\([\\t ]*\)include <freeradius-devel\/\([^>]*\)>/#\1include <freeradius\/\2>/g' < $< > $@
        @chmod 644 $@
 
 install.src.include: $(addprefix ${SRC_INCLUDE_DIR}/,${HEADERS})