Update 2024-09-12 08:24 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-09-12 08:24:54 +02:00
parent d09a0a6ad5
commit 9b6878b5d6

51
.bin/maketags Executable file
View File

@ -0,0 +1,51 @@
#!/bin/sh
set -xe
# create files list
find "${PWD}/"* -type f \
\( -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.cpp" \
-o -iname "*.c" \
-o -iname "*.h" \
-o -iname "*.hh" \
-o -iname "*.hpp" \
-o -iname "*.lua" \
-o -iname "*.gmk" \
-o -iname "*.pl" \
-o -iname "*.sh" \
-o -name "Makefile" \
\) > ${PWD}/.git/files
# include extra directories
if [ ! -z "$1" ]
then
find $@ -type f \
\( -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.cpp" \
-o -iname "*.c" \
-o -iname "*.h" \
-o -iname "*.hh" \
-o -iname "*.hpp" \
-o -iname "*.lua" \
-o -iname "*.gmk" \
-o -iname "*.pl" \
-o -iname "*.sh" \
-o -name "Makefile" \
\) >> ${PWD}/.git/files
fi
# create cscope database
cscope -qbkCRv -P${PWD} -f ${PWD}/.git/cscope.out -i${PWD}/.git/files
# create tags file
ectags --sort=yes \
--languages=C,C++,Make,Lua,Perl,Sh \
--tag-relative=no \
--extra=fq \
--totals=yes \
--exclude=.git \
-L ${PWD}/.git/files \
-f ${PWD}/.git/tags