view tests/clean.sh @ 621:2e9a6e4500d3

added an insert from file function. error handling is a bit gross. altered the license reference in the header comments.
author map01bf
date Wed, 16 Sep 2009 16:12:33 +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