Changeset View
Changeset View
Standalone View
Standalone View
head/Mk/Scripts/check-stagedir.sh
#!/bin/sh | #!/bin/sh | ||||
# ports/Mk/Scripts/check-stagedir.sh - called from ports/Mk/bsd.stage.mk | # ports/Mk/Scripts/check-stagedir.sh - called from ports/Mk/bsd.stage.mk | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
# | # | ||||
# This script serves 2 purposes: | # This script serves 2 purposes: | ||||
# 1. Generate a plist | # 1. Generate a plist | ||||
# 2. Test a plist for issues: | # 2. Test a plist for issues: | ||||
# a. Files in STAGEDIR that are missing from plist | # a. Files in STAGEDIR that are missing from plist | ||||
# b. Files in plist missing from STAGEDIR | # b. Files in plist missing from STAGEDIR | ||||
# c. Files in plist which are owned by dependencies/MTREEs | # c. Files in plist which are owned by dependencies/MTREEs | ||||
set -e | set -e | ||||
set -o pipefail | |||||
. ${SCRIPTSDIR}/functions.sh | . ${SCRIPTSDIR}/functions.sh | ||||
# lists an mtree file's contents, prefixed to dir. | # lists an mtree file's contents, prefixed to dir. | ||||
listmtree() { # mtreefile prefix | listmtree() { # mtreefile prefix | ||||
{ | { | ||||
echo '#mtree' | echo '#mtree' | ||||
sed 's/nochange$//;' $1 | sed 's/nochange$//;' $1 | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |