Mercurial > hg > audiodb
view tests/clean.sh @ 151:5fa52830e532
More defensive command-line error checking:
* the command line is also used by the WS server, so don't call exit()
directly, call error();
* turn the server flag on before parsing the command-line, so that calls
to error() do the right thing..
author | mas01cr |
---|---|
date | Wed, 31 Oct 2007 15:38:11 +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