8 echo "This script must be run from the top level package directory" >&2
12 [ $# -ge 1 ] && usage
"usage: chkINDEX"
13 [ -f INDEX
] || usage
"INDEX file not found"
15 echo Checking
for missing files
16 sed 's,^\([^|]*\)|.*,All/\1.tbz,' INDEX |
xargs ls -l >/dev
/null
18 echo Checking
for missing dependents
19 awk -F'|' '{print $9}' INDEX |
sed 's/ /\
20 /g' |
sort -u |
sed -e /^$
/d
-e 's/\(.*\)/All\/\1.tbz/' |
xargs ls -l >/dev
/null