blob: d2b9e0eed8b75af4e69ff63887cc45ff2378e40b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#! /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
|