From d15e956ecfcd237293787e10552872712ed64f7d Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Mon, 15 Feb 2010 14:18:58 -0800 Subject: [PATCH] Add ccc, a script that wraps cscope "ccc" is a script that runs the cscope program. It builds an index before launching cscope, similar to how "cscope -R" would work. Unlike cscope -R, ccc can handle .java files and others. --- ccc | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) create mode 100755 ccc diff --git a/ccc b/ccc new file mode 100755 index 0000000..d15fcf6 --- /dev/null +++ b/ccc @@ -0,0 +1,16 @@ +#!/bin/sh + +die() { + echo "$@" + exit 1 +} + +find -noleaf \ +-name '*.c' -o \ +-name '*.java' -o \ +-name '*.h' -o \ +-name '*.cpp' -o \ +-name '*.c++' \ +> cscope.files || die "find command failed" + +cscope -icscope.files -- 1.6.6.rc1.39.g9a42