Update 2023-02-22 08:31 OpenBSD/amd64
This commit is contained in:
46
.bin/dev-here-openbsd
Executable file
46
.bin/dev-here-openbsd
Executable file
@@ -0,0 +1,46 @@
|
||||
#!/bin/sh
|
||||
. ~/.bin/_config
|
||||
doas chown -R sdk /home/sdk/.dev
|
||||
set -xe
|
||||
|
||||
# save dev bookmark
|
||||
DEVDIR="${PWD}"
|
||||
echo "${DEVDIR}" > "/home/sdk/.dev/dir"
|
||||
|
||||
# create files list
|
||||
find "${DEVDIR}" /usr/local/include /usr/xenocara/{lib,proto} -type f \
|
||||
\( -name "*.c" \
|
||||
-o -name "*.h" \
|
||||
\) -not \
|
||||
\( -path "*/gnu/*" \
|
||||
-o -path "*/share/*" \
|
||||
-o -path "*/alpha/*" \
|
||||
-o -path "*/arm/*" \
|
||||
-o -path "*/arm64/*" \
|
||||
-o -path "*/armv7/*" \
|
||||
-o -path "*/hppa/*" \
|
||||
-o -path "*/i386/*" \
|
||||
-o -path "*/landisk/*" \
|
||||
-o -path "*/loongson/*" \
|
||||
-o -path "*/luna88k/*" \
|
||||
-o -path "*/m88k/*" \
|
||||
-o -path "*/macppc/*" \
|
||||
-o -path "*/mips64/*" \
|
||||
-o -path "*/octeon/*" \
|
||||
-o -path "*/powerpc/*" \
|
||||
-o -path "*/powerpc64/*" \
|
||||
-o -path "*/riscv64/*" \
|
||||
-o -path "*/sh/*" \
|
||||
-o -path "*/sparc64/*" \
|
||||
\) > /home/sdk/.dev/files
|
||||
|
||||
# create cscope database
|
||||
cscope -qbkCRvf /home/sdk/.dev/cscope.out -i/home/sdk/.dev/files
|
||||
|
||||
# create tags file
|
||||
ectags --sort=yes \
|
||||
--fields=afiksSt \
|
||||
--extra=fq \
|
||||
--totals=yes \
|
||||
-L /home/sdk/.dev/files \
|
||||
-f /home/sdk/.dev/tags
|
||||
Reference in New Issue
Block a user