X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=scripts%2Fcscopedb.sh;fp=scripts%2Fcscopedb.sh;h=1b94bdfeb2d195dead001c8bff0c67d64194c530;hp=0000000000000000000000000000000000000000;hb=6c9943707d4f33035830eba0587a61a34eaecbc2;hpb=af88821a172c4dfd138b91b2a5148ae50b502fa2 diff --git a/scripts/cscopedb.sh b/scripts/cscopedb.sh new file mode 100755 index 0000000..1b94bdf --- /dev/null +++ b/scripts/cscopedb.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# Create or update the cscope database. + +current="$PWD" +cd / +find "$current" \ +-iname "*.c" -o \ +-iname "*.h" -o \ +-iname "*.cc" -o \ +-iname "*.hh" | sed '/ / s/^\(.*\)/"\1"/' >"$current/cscope.files" + +cd "$current" + +cscope -b -q +