mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-17 15:27:36 +00:00
A script to validate that the packages and dependencies listed in
the INDEX file exist.
This commit is contained in:
parent
731867d068
commit
4b5395fccb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97899
20
release/scripts/chkINDEX
Executable file
20
release/scripts/chkINDEX
Executable file
@ -0,0 +1,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.tgz,' INDEX | xargs ls -l >/dev/null
|
||||
|
||||
echo Checking for missing dependents
|
||||
awk -F'|' '{print $8}' INDEX | sed 's/ /\
|
||||
/g' | sort -u | sed -e /^$/d -e 's/\(.*\)/All\/\1.tgz/' | xargs ls -l >/dev/null
|
Loading…
Reference in New Issue
Block a user