We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5ce3bf commit 28fbc59Copy full SHA for 28fbc59
mk/pp.mk
@@ -17,7 +17,11 @@ reformat: $(SREQ1)
17
for i in $(PP_INPUTS_FILTERED); \
18
do $(call CFG_RUN_TARG,stage1,stage1/rustc$(X)) \
19
--pretty normal $$i >$$i.tmp; \
20
- if cmp --silent $$i.tmp $$i; \
21
- then echo no changes to $$i; rm $$i.tmp; \
22
- 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; \
23
+ then echo no changes to $$i; rm $$i.tmp; \
24
+ else echo reformated $$i; mv $$i.tmp $$i; \
25
+ fi; \
26
27
done
0 commit comments