cscope中这样生成cscope.files
来源:互联网 发布:手机淘宝咋用微信支付 编辑:程序博客网 时间:2024/06/16 21:55
find `pwd` -name "*.[ch]" -o -name "*.cpp" > cscope.filescscope -bR -i cscope.files
上述命令中使用`pwd`取得绝对路径名,以防止使用cscope时出现找不到文件的情况;
命令cscope中的-i参数可以去掉,因为cscope缺省就是从当前目录的cscope.files中查找文件列表。
还有一个简洁的办法实现在当前目录下建立cpp文件和c文件混合的cscope.out;
在~/.bashrc中添加如下alias:
alias mkcscopefile='find `pwd` -name "*.[ch]" -o -name "*.cpp" > cscope.files'alias mktag='ctags -R;cscope -bR'
然后,在terminal中source ~/.bashrc,就可以使用mkcscopefile;mktag命令来生成cscope.out和tags文件了。
如果路径中含有空格,需要使用sed对生成的cscope.files文件进行处理,命令:
sed -i ‘s/^/"/;s/$/"/' cscope.files
- cscope中这样生成cscope.files
- cscope以绝对路径生成cscope.files
- 公布生成cscope.out, cscope.files, tags的脚本文件
- cscope
- cscope
- cscope
- cscope
- cscope
- cscope
- cscope
- cscope
- cscope
- Cscope
- cscope
- Cscope
- cscope
- uboot 2012.04 tags cscope.files
- cscope数据库生成脚本
- 2011~2012阿里淘宝技术嘉年华ppt打包.完整版
- 特别简单的android瀑布流实现
- Android 有米广告添加实例
- android设置view透明度的效果
- 如何使用Unix/Linux grep命令——磨刀不误砍柴工系列
- cscope中这样生成cscope.files
- top命令的使用以及显示结果的介绍
- Js/Jquery获取iframe中的元素 在Iframe中获取父窗体的元素方法
- poj 2801
- Google 推出的 web 输入法工具 Google input tools
- ASP.Net Cookie(几个不同出处)
- 如何在Android模拟器上安装和卸载APK程序包
- 比较两个数a、b的大小,不能使用大于/小于、if、switch,?:等判断语句
- PHP5中PDO的简单使用