1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#! /bin/sh bdir=$1 shift echo TOTAL $bdir du -hsc $bdir echo echo Cleaning workspace $bdir rm -rf `find $bdir -name workspace` rm -rf `find $bdir -name workspace-files` rm -rf `find $bdir -name javadoc` echo echo Cleaned TOTAL $bdir du -hsc $bdir