#!/bin/bash if [ "x`dirname $0`" != "x." ] then echo "You must run this script from the cmsdam/scripts directory" exit 1 fi echo -n "Are you shure you want to drop ../temp ../docs/phpdoc/ ../docs/temp/ directories??? " read fl if [ "x$fl" == "xy" ] then for i in `find ../ -name 'CVS' -type d` do rm -fr $i done rm -fr ../temp ../docs/phpdoc/ ../docs/temp/ ../logs/* ../template/temp echo "Deleted" else echo "Aborted" fi