mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 19:52:44 +00:00
9b7e3080cf
Approved by: re
21 lines
479 B
Bash
Executable File
21 lines
479 B
Bash
Executable File
#! /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.tbz,' INDEX | xargs ls -l >/dev/null
|
|
|
|
echo Checking for missing dependents
|
|
awk -F'|' '{print $9}' INDEX | sed 's/ /\
|
|
/g' | sort -u | sed -e /^$/d -e 's/\(.*\)/All\/\1.tbz/' | xargs ls -l >/dev/null
|