History log of /freebsd-10.0-release/usr.bin/locate/locate/mklocatedb.sh
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 259065 07-Dec-2013 gjb

- Copy stable/10 (r259064) to releng/10.0 as part of the
10.0-RELEASE cycle.
- Update __FreeBSD_version [1]
- Set branch name to -RC1

[1] 10.0-CURRENT __FreeBSD_version value ended at '55', so
start releng/10.0 at '100' so the branch is started with
a value ending in zero.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 100482 22-Jul-2002 tjr

Correct syntax error, remove the unescaped newline between "||" and the
command it is intended to test. pdksh and bash caught this syntax error,
sh(1) did not behave as intended.

PR: 40386


# 98654 22-Jun-2002 obrien

Only got one of the Perl usages.


# 98653 22-Jun-2002 obrien

Replace a perl usage with an AWK one.

Submitted by: Bob Willcox <bob@immure.com>


# 55835 12-Jan-2000 kris

Use mktemp(1) for tempfiles (concatdb.sh), and increase the number of X's.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 41393 28-Nov-1998 wosch

Set TMPDIR to /tmp
Remove the temp directory in trap.
Replace the buggy awk script with a correct perl script.

Don't make a copy of the input data anymore if the input is already
sorted (option -presort). This scheme avoid large temporary files in
/tmp.


# 34313 08-Mar-1998 wosch

Change default temporary directory (TMPDIR) from /tmp to /var/tmp.

Mosts users seems to have a larger /var/tmp partition
than /tmp - IMHO silly but who cares?


# 34312 08-Mar-1998 wosch

Improve shell variable substitution.


# 31703 13-Dec-1997 sef

Allow TMPDIR to be set and actually *used*; if it not set, it defaults
to /tmp.


# 23012 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


# 21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


# 17849 27-Aug-1996 wosch

sync copyright with /usr/share/examples/etc/bsd-style-copyright


# 17592 13-Aug-1996 wosch

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