Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/check-stagedir.sh
Show All 10 Lines | |||||
# 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 | ||||
export LC_ALL=C | export LC_ALL=C | ||||
. ${SCRIPTSDIR}/functions.sh | . ${SCRIPTSDIR}/functions.sh | ||||
[ -n "${DEBUG_MK_SCRIPTS}" -o -n "${DEBUG_MK_SCRIPTS_CHECK_STAGEDIR}" ] && set -x | |||||
# 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 | ||||
} | tar -tf- | sed "s,^,$2/,;s,^$2/\.$,$2,;s,^$,/," | } | tar -tf- | sed "s,^,$2/,;s,^$2/\.$,$2,;s,^$,/," | ||||
} | } | ||||
▲ Show 20 Lines • Show All 257 Lines • Show Last 20 Lines |