Skip to content

Commit d24ad4b

Browse files
committed
fix: Safer .dd generation
1 parent abd07a0 commit d24ad4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/deps.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ include $(GLUE_CPP_SOURCES:.o=.dd)
55
# Include only local dependencies for smaller footprint
66
# Add trailing backslash and sort
77
%.dd: %.d
8-
sed -r 's/([^ ]) ([^ \\])/\1 \\\n \2/g' $< | sed -r '/^ ([/]|vendor|[.][.])/D;$$s/([^\\])$$/\1 \\/' | { echo "# Generated by deps.mk, do not edit by hand and do not add dependencies to system headers"; read -r header; printf '%s\n' "$$header"; LC_ALL=C sort; } > $@
8+
sed -r 's/([^ ]) ([^ \\])/\1 \\\n \2/g' $< | sed -r '/^ +([/]|vendor|[.][.])/D;$$s/([^\\])$$/\1 \\/' | { echo "# Generated by deps.mk, do not edit by hand and do not add dependencies to system headers"; read -r header; printf '%s\n' "$$header"; LC_ALL=C sort; } > $@

0 commit comments

Comments
 (0)