#!/bin/bash if [ $# -eq 1 ] ; then ROLL_LIST=$1 else baseDir=`dirname $0` if [[ "`hostname -s`" == "umrocks" ]] ; then source $baseDir/roll_list.conf.um else source $baseDir/roll_list.conf.msu fi fi # nowDir=$PWD cd /export/rocks/svn-trunk/rolls-src for aroll in $ROLL_LIST ; do echo "========== Cleaning roll $aroll ==================" cd $aroll make clean rmdir SRPMS RPMS/noarch /bin/rm _arch cd .. done cd $nowDir