view libtests/clean.sh @ 362:ee0a97b3a630 gcc-4.3-cleanups

Add some braces to avoid ambiguous `else's. (Initially I didn't even understand why they could possibly be ambiguous, but then I realised that this isn't Python :-)
author mas01cr
date Wed, 12 Nov 2008 13:05:14 +0000
parents 94c18f128ce8
children cd63493c32a9
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*
    if [ -f ${file}/clean.sh ]; then
      (cd ${file} && sh ./clean.sh)
    fi
  fi
done