]> Dogcows Code - chaz/yoink/blobdiff - scripts/cscopedb.sh
build system enhancements
[chaz/yoink] / scripts / cscopedb.sh
diff --git a/scripts/cscopedb.sh b/scripts/cscopedb.sh
new file mode 100755 (executable)
index 0000000..1b94bdf
--- /dev/null
@@ -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
+
This page took 0.020071 seconds and 4 git commands to generate.