From e718a21e499969024df7f5dda0d1bdbbf6c14e4f Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Wed, 17 Feb 2016 08:53:41 +0100 Subject: [PATCH] Bash script to generate cscope files --- .gitignore | 1 + cscope_gen.sh | 5 +++++ 2 files changed, 6 insertions(+) create mode 100755 cscope_gen.sh diff --git a/.gitignore b/.gitignore index 942182a..8560a20 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ cscope.in.out cscope.po.out cscope.out +cscope.files tags autom4te.cache/ diff --git a/cscope_gen.sh b/cscope_gen.sh new file mode 100755 index 0000000..8fe3fdc --- /dev/null +++ b/cscope_gen.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +find . \( -path './action_skel_code' -prune -o -path './.git' -prune -o -path './lib' -prune -o -path '*/gtest' -prune -o -name '*.cpp' -o -name '*.inl' -o -name '*.hpp' -o -name '*.h' -o -name '*.c' \) -a -type f > cscope.files + +cscope -b -q