2002-06-06 00:17:11 +00:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
usage()
|
|
|
|
{
|
|
|
|
echo "$*" >&2
|
|
|
|
echo "This script must be run from the top level package directory" >&2
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
[ $# -ge 1 ] && usage "usage: chkINDEX"
|
|
|
|
[ -f INDEX ] || usage "INDEX file not found"
|
|
|
|
|
|
|
|
echo Checking for missing files
|
|
|
|
sed 's,^\([^|]*\)|.*,All/\1.tgz,' INDEX | xargs ls -l >/dev/null
|
|
|
|
|
|
|
|
echo Checking for missing dependents
|
2002-06-10 00:46:29 +00:00
|
|
|
awk -F'|' '{print $9}' INDEX | sed 's/ /\
|
2002-06-06 00:17:11 +00:00
|
|
|
/g' | sort -u | sed -e /^$/d -e 's/\(.*\)/All\/\1.tgz/' | xargs ls -l >/dev/null
|