您的位置:首页 > 运维架构 > Shell

Bash脚本:生成代码csope和ctags信息

2011-09-28 11:08 281 查看
 
#!/bin/bash

echo "Code Cross-reference Info Generator v0.2"

cur_dir=$(pwd)

echo "Generating cscope & ctags information in the directory " $cur_dir

rm -rf ./cscope.*

find $cur_dir -name "*.c" -o -name "*.C" -o -name "*.h" -o -name "*.H" -o -name "*.cc" -o -name "*.def" > cscope.files

cscope -Rbkq

ctags -R --langmap=c:+.def

echo "Done"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐