OpenBSD CVS

CVS log for src/usr.bin/locate/locate/mklocatedb.sh


[BACK] Up to [local] / src / usr.bin / locate / locate

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.14 / (download) - annotate - [select for diffs], Thu Jan 17 06:15:44 2019 UTC (5 years, 4 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, HEAD
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

delete some historic $Id that have been chewed on by cvs
ok millert mpi

Revision 1.13 / (download) - annotate - [select for diffs], Sun Mar 18 20:13:49 2007 UTC (17 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

It's not smart to use a space as a field separator when a space can
be part of a bigram. So switch to tab and as a bonus detect in
locate.code if the bigram array is too short. Problem seen by Han
Boetes and other people with too big mps3 collections; these typically
contain lots of file names with spaces in them. ok jasper@

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 29 21:59:28 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Previous commit resulted in a zero-length locate db which I didn't
notice since /etc/weekly doesn't install a 0-length file.
So, go back to using print, not printf, but set ORS to NULL so we don't
get those extra newlines.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jun 28 20:30:35 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

Fix previous commit that broke locate.  Unlike printf, print writes a
newline.  So go back to using printf but use an explicit %s format to
make things safe.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 24 23:49:23 2003 UTC (20 years, 11 months ago) by millert
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

use print, not printf in awk; from ak at freeshell

Revision 1.9 / (download) - annotate - [select for diffs], Sat Feb 8 10:19:30 2003 UTC (21 years, 4 months ago) by pvalchev
Branch: MAIN
CVS Tags: OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.8: +6 -3 lines
Diff to previous 1.8 (colored)

When creating > 1 files with mktemp(1), make sure that if the creation
of the n'th (n>1) file fails, the previous ones get removed before exit(1)
Idea by jason; ok millert deraadt

Revision 1.8 / (download) - annotate - [select for diffs], Fri Oct 4 17:33:45 2002 UTC (21 years, 8 months ago) by millert
Branch: MAIN
Changes since 1.7: +4 -4 lines
Diff to previous 1.7 (colored)

Move the -H to the sort variable declaration itself since the -H
flag is non-standard.  This allows people to use a different sort
(like GNU sort) if they want via the sort environment variable.
mickey@ OK

Revision 1.7 / (download) - annotate - [select for diffs], Fri Oct 4 17:30:42 2002 UTC (21 years, 8 months ago) by mickey
Branch: MAIN
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

sort -H for modern large filesystems; from McikyeBSD; millert@ ok and multiple ppl testing

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 13 20:06:13 1997 UTC (26 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1, OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7, OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5, OPENBSD_2_4_BASE, OPENBSD_2_4, OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

permit TMPDIR override; sef

Revision 1.5 / (download) - annotate - [select for diffs], Wed Apr 2 08:35:00 1997 UTC (27 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

use 10 X for mktemp(1)

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jan 3 23:33:49 1997 UTC (27 years, 5 months ago) by millert
Branch: MAIN
Changes since 1.3: +6 -14 lines
Diff to previous 1.3 (colored)

locate shell scripts now use mktemp(1) and weekly runs updatedb
as bin not nobody to avoid NFS problems.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Sep 15 23:38:38 1996 UTC (27 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +13 -8 lines
Diff to previous 1.2 (colored)

kill the race; noticed by bitblt

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 15 16:50:40 1996 UTC (27 years, 9 months ago) by michaels
Branch: MAIN
Changes since 1.1: +25 -3 lines
Diff to previous 1.1 (colored)

Blind update of wosch@FreeBSD's code:

optimized search algorithm
faster IO due mmap(2) [-m | -s]
better error check for damaged databases
support for databases in network byte order (SunOS/sparc)
optional case insensitve search [-i]
optional multiple databases
optional multiple pattern
new enviroment variable LOCATE_PATH for database(s)
[-S] print some statistic about the database
[-l number] limit output to number file names
[-c] suppress normal output; instead print a count of matching file names
fix prototypes/forward declarations/return type

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 17 09:37:46 1996 UTC (27 years, 10 months ago) by michaels
Branch: MAIN

argv.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.