From: Colin Patrick McCabe Date: Mon, 15 Feb 2010 22:18:58 +0000 (-0800) Subject: Add ccc, a script that wraps cscope X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d15e956ecfcd237293787e10552872712ed64f7d;p=cmccabe-bin 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. --- 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