2014-07-10 01:13:13 -06:00
|
|
|
#!/bin/sh
|
2014-07-12 13:14:55 -06:00
|
|
|
# $OpenBSD: makelocatedb,v 1.2 2014/07/12 19:14:55 espie Exp $
|
2014-07-10 01:13:13 -06:00
|
|
|
|
|
|
|
# xy
|
|
|
|
RELEASE=$1
|
|
|
|
|
|
|
|
if [ "X${RELEASE}" = "X" ]; then
|
|
|
|
echo "Usage: `basename $0` <OSREVISION>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
pwd=`pwd`
|
|
|
|
listsdir=`pwd`/lists
|
|
|
|
|
2014-07-12 13:14:55 -06:00
|
|
|
lists=`sh ./genlists ${MACHINE}`
|
2014-07-10 01:13:13 -06:00
|
|
|
|
|
|
|
for setname in $lists; do
|
|
|
|
(cd $pwd; sh gensetlist $setname) | \
|
|
|
|
sed -e "s,^\.,${setname}${RELEASE}:,"
|
|
|
|
done | sort | /usr/libexec/locate.mklocatedb
|