From 6b739739968a0cc9b4d9909d8f4ffec30f4461dd Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Fri, 1 May 2020 16:26:24 -0700 Subject: moved to static build with musl and integrated cscopes into dev tools --- bin/gentags | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/gentags (limited to 'bin') diff --git a/bin/gentags b/bin/gentags new file mode 100755 index 0000000..f0494f0 --- /dev/null +++ b/bin/gentags @@ -0,0 +1,19 @@ +#!/bin/bash + +CSCOPE_DIR="$PWD/.cscope" + +if [ ! -d "$CSCOPE_DIR" ]; then +mkdir "$CSCOPE_DIR" +fi + +echo "finding files ..." +ROOT=/home/nolln/root +find $ROOT \ + -path "$ROOT/sys/*.[chs]" -prune -o \ + -path "$ROOT/include/*.h" > "$CSCOPE_DIR/files" + +echo "adding files to cscope db: $ROOT/cscope.db ..." +cscope -b -i "$CSCOPE_DIR/files" + +CSCOPE_DB="$ROOT/cscope.out" +echo "exported CSCOPE_DB to: '$CSCOPE_DB'" -- cgit v1.2.1