Commit e212bbaf by Nils Goroll

fix the fixup loop

parent 3a7f22a1
......@@ -73,21 +73,28 @@ fixup.out:
dcs_classifier.c dcs_classifier.h \
dcs_type.c dcs_match_mem.h
( cd .. ; $(MAKE) $(AM_MAKEFLAGS) dcs_test )
prev=99999; \
while ! ../dcs_test fixup.remove fixup.reorder >>fixup.out ; do \
cur=$$? ; \
prev=99999 ; \
../dcs_test fixup.remove fixup.reorder >>fixup.out ; \
cur=$$? ; \
while test $$cur -ne 0 ; do \
if test $$cur -ge $$prev ; then \
echo number of errors is not decreasing - failing fixup ; \
echo number of errors cur $$cur prev $$prev \
is not decreasing - failing fixup ; \
rm fixup.remove fixup.reorder ; \
rm dcs_classifier.c dcs_classifier.h dcs_type.c ; \
exit $$cur ; \
fi ; \
prev=$$cur ; \
( rm dcs_classifier.c dcs_classifier.h ; \
if ! $(MAKE) $(AM_MAKEFLAGS) \
rm dcs_classifier.c dcs_classifier.h ; \
if ! $(MAKE) $(AM_MAKEFLAGS) \
dcs_classifier.c dcs_classifier.h \
dcs_type.c dcs_match_mem.h ; then \
break ; \
fi ; \
cd .. ; $(MAKE) $(AM_MAKEFLAGS) dcs_test ) \
fi ; \
cd .. ; $(MAKE) $(AM_MAKEFLAGS) dcs_test ; \
cd - ; \
../dcs_test fixup.remove fixup.reorder >>fixup.out ; \
cur=$$? ; \
done
fixup-local: fixup.remove fixup.reorder fixup.out
......
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