summaryrefslogtreecommitdiff
path: root/distrib/sets/makelocatedb
blob: 77cfece5aa83321503ec2895e5b65b60784ea5bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#	$OpenBSD: makelocatedb,v 1.2 2014/07/12 19:14:55 espie Exp $

# xy
RELEASE=$1

if [ "X${RELEASE}" = "X" ]; then
	echo "Usage: `basename $0` <OSREVISION>"
	exit 1
fi

pwd=`pwd`
listsdir=`pwd`/lists

lists=`sh ./genlists ${MACHINE}`

for setname in $lists; do
	(cd $pwd; sh gensetlist $setname) | \
	    sed -e "s,^\.,${setname}${RELEASE}:,"
done | sort | /usr/libexec/locate.mklocatedb