libdb/dist/s_cscope

18 lines
398 B
Text
Raw Normal View History

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