uboot 2012.04 tags cscope.files

12 篇文章 0 订阅
11 篇文章 0 订阅
#!/bin/bash

UBOOT=$PWD
#generate the cscope.files 
find $UBOOT \
	-path "$UBOOT/include/configs*"  								-prune -o 	\
	-path "$UBOOT/board/*" 											-prune -o	\
	-path "$UBOOT/drivers/serial/*"									-prune -o	\
	-path "$UBOOT/nand_spl/*" 										-prune -o	\
	-path "$UBOOT/onenand_ipl/*" 									-prune -o	\
	-path "$UBOOT/doc/*" 											-prune -o	\
	-path "$UBOOT/arch/arm/cpu/*" 									-prune -o	\
	-path "$UBOOT/arch/arm/include/asm/*" ! -path "$UBOOT/arch/arm/include/asm/arch-s3c24x0*"	-prune -o	\
	-path "$UBOOT/arch/*" ! -path "$UBOOT/arch/arm*"				-prune -o	\
	-path "$UBOOT/examples/*" 										-prune -o	\
	-path "$UBOOT/tools/*" 											-prune -o	\
	-name "*.[chsS]" -print > $UBOOT/cscope.files

find $UBOOT/include/configs/ -name mini2440.h >>  $UBOOT/cscope.files	
find $UBOOT/board/samsung/mini2440/ -name "*.[chsS]" >>  $UBOOT/cscope.files	
find $UBOOT/drivers/serial/ -name serial_s3c24x0.c >>  $UBOOT/cscope.files	
find $UBOOT/arch/arm/cpu/arm920t/s3c24x0/ -name "*.[chsS]" >>  $UBOOT/cscope.files	
cscope -bkq -i $UBOOT/cscope.files

#generate the cppcomplete 
ctags -n -f tags --fields=+ai --C++-types=+p * -L $UBOOT/cscope.files

#Try setting the $CSCOPE_DB environment variable to point to a Cscope database you create, so you won't always need to launch Vim in the same directory as the database.
#export CSCOPE_DB 
export CSCOPE_DB=$UBOOT/cscope.out

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值