提交 c642199f 编写于 作者: J Ján Tomko

syntax-check: fix sc-prohibit-cross-inclusion

Using '^' in in_vc_files assumes the build is happening
in srcdir, which is no longer possible as of:
commit f96395e7Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 04cef3b2
...@@ -871,7 +871,7 @@ sc_prohibit_cross_inclusion: ...@@ -871,7 +871,7 @@ sc_prohibit_cross_inclusion:
safe="($$dir|util|conf|storage)";; \ safe="($$dir|util|conf|storage)";; \
*) safe="($$dir|$(mid_dirs)|util)";; \ *) safe="($$dir|$(mid_dirs)|util)";; \
esac; \ esac; \
in_vc_files="^src/$$dir" \ in_vc_files="src/$$dir" \
prohibit='^# *include .$(cross_dirs_re)' \ prohibit='^# *include .$(cross_dirs_re)' \
exclude="# *include .$$safe" \ exclude="# *include .$$safe" \
halt='unsafe cross-directory include' \ halt='unsafe cross-directory include' \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册