diff options
author | Wolfram Schneider <wosch@FreeBSD.org> | 1996-08-14 00:22:31 +0000 |
---|---|---|
committer | Wolfram Schneider <wosch@FreeBSD.org> | 1996-08-14 00:22:31 +0000 |
commit | 370021810ab49e070cc0bf153a3c629a73ef357b (patch) | |
tree | 5ee2c3ccbe51dc57abaaffc3dd772e05c9efab8c /usr.bin/locate/code/Makefile | |
parent | aa648cf84b3a324c6abe21bb0ff06bbb77c987c4 (diff) | |
download | src-370021810ab49e070cc0bf153a3c629a73ef357b.tar.gz src-370021810ab49e070cc0bf153a3c629a73ef357b.zip |
bigram
Bigram does not remove newline at end of filename. This
break particulary the bigram algorithm and /var/db/locate.database
grow up 15 %.
Bigram does not check for characters outside 32-127.
The bigram output is silly and need ~1/2 CPU time of
database rebuilding.
old:
locate.bigram < $filelist | sort | uniq -c | sort -nr
^^^^^^^^^^^^^^
this can easy made bigram
new:
bigram < $filelist | sort -nr
code
Code does not check for char 31.
Use a lookup array instead a function. 3 x faster.
updatedb
rewritten
sync with bigram changes
read config file /etc/locate.rc if exists
submitted by: guido@gvr.win.tue.nl (Guido van Rooij)
concatdb - concatenate locate databases
mklocatedb - build locate database
Notes
Notes:
svn path=/head/; revision=17592
Diffstat (limited to 'usr.bin/locate/code/Makefile')
-rw-r--r-- | usr.bin/locate/code/Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/locate/code/Makefile b/usr.bin/locate/code/Makefile index 743e96859b70..a7d8e80ef5bc 100644 --- a/usr.bin/locate/code/Makefile +++ b/usr.bin/locate/code/Makefile @@ -1,8 +1,9 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= locate.code -CFLAGS+=-I${.CURDIR}/../locate +CFLAGS+=-I${.CURDIR}/../locate NOMAN= noman -BINDIR= /usr/libexec +BINDIR= ${LIBEXECDIR} +.include "../Makefile.inc" .include <bsd.prog.mk> |