Commit 3d71fab9 authored by Nils Goroll's avatar Nils Goroll

break fixup unless it does any good

parent 3c4addfb
......@@ -36,7 +36,14 @@ fixup.remove fixup.reorder fixup.out:
- rm dcs_classifier.c dcs_classifier.h dcs_type.c
$(MAKE) $(AM_MAKEFLAGS) dcs_classifier.c dcs_classifier.h dcs_type.c
( cd .. ; $(MAKE) $(AM_MAKEFLAGS) dcs_test )
prev=99999; \
while ! ../dcs_test fixup.remove fixup.reorder >>fixup.out ; do \
cur=$$? ; \
if test $$cur -ge $$prev ; then \
echo number of errors is not decreasing - failing fixup ; \
exit $$cur ; \
fi ; \
prev=$$cur ; \
( rm dcs_classifier.c dcs_classifier.h ; \
if ! $(MAKE) $(AM_MAKEFLAGS) dcs_classifier.c dcs_classifier.h dcs_type.c ; then break ; fi ; \
cd .. ; $(MAKE) $(AM_MAKEFLAGS) dcs_test ) \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment