#!/bin/bash
# loescht alle Unterverzeichnisse, in die unpack_srpm.sh die pakete 
# entpackt hat
# $Id: clean_dirs.sh,v 1.1 2002/09/17 09:50:26 pstorz Exp $

if [ -z "$1" ]; then
        echo "usage: $0 directory"
        exit 1
fi

DIR=$1;
echo dir is $DIR;
cd $DIR; 
pwd;
for i in `cd $DIR; find * -type d  -maxdepth 1 |grep -v CVS`; do rm -rvf $i;done

