分类:
2008-11-02 21:11:19
对于庞大的工程,有时候其Make clean并不能清楚干净,所以我们得自己去清理,可以用这个脚本
#!/bin/bash
#The shell used to delete some junk files for a clean project version
echo "Start to clean......"
junk="*~ *# *.bak *.elf *.gdb *.o *.d .svn .depend"
#junk+=".svn"
for i in $junk
do
echo "find the :$i"
command="find . -name $i"
result=`$command`
for j in $result
do
echo " delete: "$j
rm -rf $j
done
done
echo "Clean the junk files complete!"