+#!/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
+