Chinaunix首页 | 论坛 | 博客
  • 博客访问: 438709
  • 博文数量: 78
  • 博客积分: 2030
  • 博客等级: 大尉
  • 技术积分: 1002
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 15:25
文章分类

全部博文(78)

文章存档

2012年(1)

2011年(1)

2010年(4)

2009年(12)

2008年(60)

我的朋友

分类:

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!"

阅读(1354) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~