summaryrefslogtreecommitdiffstats
path: root/usr.bin/locate/bigram/Makefile
diff options
context:
space:
mode:
authorwosch <wosch@FreeBSD.org>1996-08-14 00:22:31 +0000
committerwosch <wosch@FreeBSD.org>1996-08-14 00:22:31 +0000
commit9c0ad6a2b3f4178ace4292cdb66f55997eddf45c (patch)
tree5ee2c3ccbe51dc57abaaffc3dd772e05c9efab8c /usr.bin/locate/bigram/Makefile
parent521551a94c26abb72ce3538eb54e226c481f5dad (diff)
downloadFreeBSD-src-9c0ad6a2b3f4178ace4292cdb66f55997eddf45c.zip
FreeBSD-src-9c0ad6a2b3f4178ace4292cdb66f55997eddf45c.tar.gz
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
Diffstat (limited to 'usr.bin/locate/bigram/Makefile')
-rw-r--r--usr.bin/locate/bigram/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/locate/bigram/Makefile b/usr.bin/locate/bigram/Makefile
index d7d4348..fbba14d 100644
--- a/usr.bin/locate/bigram/Makefile
+++ b/usr.bin/locate/bigram/Makefile
@@ -2,6 +2,8 @@
PROG= locate.bigram
NOMAN= noman
-BINDIR= /usr/libexec
+BINDIR= ${LIBEXECDIR}
+CFLAGS+= -I${.CURDIR}/../locate
+.include "../Makefile.inc"
.include <bsd.prog.mk>
OpenPOWER on IntegriCloud