summaryrefslogtreecommitdiff
path: root/db-4.8.30/dist/s_cscope
diff options
context:
space:
mode:
Diffstat (limited to 'db-4.8.30/dist/s_cscope')
-rwxr-xr-xdb-4.8.30/dist/s_cscope17
1 files changed, 17 insertions, 0 deletions
diff --git a/db-4.8.30/dist/s_cscope b/db-4.8.30/dist/s_cscope
new file mode 100755
index 0000000..00966b5
--- /dev/null
+++ b/db-4.8.30/dist/s_cscope
@@ -0,0 +1,17 @@
+#!/bin/sh -
+# $Id$
+#
+# Build cscope files.
+
+(
+echo ../dbinc/*.in ../dbinc/*.h ../dbinc_auto/*.h;
+cat srcfiles.in |
+sed -e '/^#/d' \
+ -e '/^$/d' \
+ -e 's/^/..\//' \
+ -e '/\/csv_local.c/d' \
+ -e '/\/db_server_clnt.c/d' \
+ -e '/\/db_server_svc.c/d' \
+ -e '/\/db_server_xdr.c/d' \
+ -e '/\/gen_db_server.c/d' |
+awk '{print $1}') | cscope -bkUu -i- 2>&1 | sed '/cannot find file/d'