view libtests/clean.sh @ 397:fb633cac9c3a api-inversion

Don't divide by zero. This didn't show up in the default build, but if you take out the -O3 my system starts exiting with floating point errors. Neat.
author mas01cr
date Thu, 27 Nov 2008 15:19:45 +0000
parents cd63493c32a9
children
line wrap: on
line source
#! /bin/sh

for file in [0-9][0-9][0-9][0-9]*; do
  if [ -d ${file} ]; then
    echo Cleaning ${file}
    rm -f ${file}/test*
    (cd ${file} && make -f ../libtest.mk clean >/dev/null 2>&1)
    if [ -f ${file}/clean.sh ]; then
      (cd ${file} && sh ./clean.sh)
    fi
  fi
done