提交 28fbc591 编写于 作者: B Brian Anderson

Add more verbosity to 'make reformat'

For each file it will indicate that it was reformatted, unchanged, or failed
上级 f5ce3bf1
......@@ -17,7 +17,11 @@ reformat: $(SREQ1)
for i in $(PP_INPUTS_FILTERED); \
do $(call CFG_RUN_TARG,stage1,stage1/rustc$(X)) \
--pretty normal $$i >$$i.tmp; \
if cmp --silent $$i.tmp $$i; \
then echo no changes to $$i; rm $$i.tmp; \
else mv $$i.tmp $$i; fi \
if [ $$? -ne 0 ]; \
then echo failed to print $$i; rm $$i.tmp; \
else if cmp --silent $$i.tmp $$i; \
then echo no changes to $$i; rm $$i.tmp; \
else echo reformated $$i; mv $$i.tmp $$i; \
fi; \
fi; \
done
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册