2 # - Any text file /usr/{bin,lib,libexec,share} contains $XBPS_CROSS_BASE
3 # - Any text file /usr/{bin,lib,libexec,share} contains $XBPS_WRAPPERDIR
6 if [ -z "$CROSS_BUILD" ]; then
9 for d
in bin lib libexec share
; do
10 for f
in $PKGDESTDIR/usr
/$d/* $PKGDESTDIR/usr
/$d/**/*; do
11 case "$(file -bi "$f")" in
12 text
/*) if grep -q -e "$XBPS_CROSS_BASE" \
13 -e "$XBPS_WRAPPERDIR" "$f"; then
14 msg_warn
"${f#$PKGDESTDIR} has cross cruft\n"