view tests/clean.sh @ 252:fe4dc39b2dd7

Perform the incredibly tedious job of making the tests bash scripts, rather than shell scripts. This seems easier than emulating all the useful error-handling features that bash provides in POSIX functionality as provided by dash(1).
author mas01cr
date Mon, 31 Mar 2008 13:02:26 +0000
parents 1853beeb0521
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*
    if [ -f ${file}/clean.sh ]; then
      (cd ${file} && sh ./clean.sh)
    fi
  fi
done