Mercurial > hg > audiodb
view tests/clean.sh @ 366:521812d63516 gcc-4.3-cleanups
check return values of read() and write(), erroring out on an error
return value or a short read/write.
(A stylish implementation of CHECKED_FOO() would detect short
reads/writes and retry the failed portion, but...)
author | mas01cr |
---|---|
date | Wed, 12 Nov 2008 15:23:29 +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