int_loop.sh: while => if conditional

Signed-off-by: John McMaster <johndmcmaster@gmail.com>
This commit is contained in:
John McMaster 2018-12-11 14:11:55 -08:00
parent 26be7408f7
commit c1bd5d0194
1 changed files with 6 additions and 3 deletions

View File

@ -5,11 +5,14 @@ MAKEFLAGS=${MAKEFLAGS:-}
echo "make: ${MAKE} ${MAKEFLAGS}"
echo $MAKE
mkdir -p todo;
while
while true; do
${MAKE} ${MAKEFLAGS} cleanprj;
${MAKE} ${MAKEFLAGS} build/todo.txt || exit 1;
test -s build/todo.txt;
do
echo "Remaining: " $(wc -l build/todo_all.txt)
if [ \! -s build/todo.txt ] ; then
break
fi
i=$((i+1));
cp build/todo.txt todo/${i}.txt;
cp build/todo_all.txt todo/${i}_all.txt;