Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/qa.sh
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | while read l; do | ||||
# No results presents a blank line from heredoc. | # No results presents a blank line from heredoc. | ||||
[ -z "${l}" ] && continue | [ -z "${l}" ] && continue | ||||
read link | read link | ||||
case "${link}" in | case "${link}" in | ||||
${STAGEDIR}*) | ${STAGEDIR}*) | ||||
err "Bad symlink '${l#${STAGEDIR}${PREFIX}/}' pointing inside the stage directory" | err "Bad symlink '${l#${STAGEDIR}${PREFIX}/}' pointing inside the stage directory" | ||||
rc=1 | rc=1 | ||||
;; | ;; | ||||
/*) | |||||
warn "Bad symlink '${l#${STAGEDIR}}' pointing to an absolute pathname '${link}'" | |||||
;; | |||||
esac | esac | ||||
# Use heredoc to avoid losing rc from find|while subshell. | # Use heredoc to avoid losing rc from find|while subshell. | ||||
done <<-EOF | done <<-EOF | ||||
$(find ${STAGEDIR} -type l -exec stat -f "%N${LF}%Y" {} +) | $(find ${STAGEDIR} -type l -exec stat -f "%N${LF}%Y" {} +) | ||||
EOF | EOF | ||||
return ${rc} | return ${rc} | ||||
} | } | ||||
▲ Show 20 Lines • Show All 457 Lines • ▼ Show 20 Lines | $(cd ${STAGEDIR} && find -s . -type f \( -perm +111 -o -name '*.so*' \) | \ | ||||
sed -e 's/^\.//') | sed -e 's/^\.//') | ||||
EOT | EOT | ||||
[ -z "${PROXYDEPS_FATAL}" ] && return 0 | [ -z "${PROXYDEPS_FATAL}" ] && return 0 | ||||
return ${rc} | return ${rc} | ||||
} | } | ||||
checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo suidfiles libtool libperl prefixvar baselibs terminfo proxydeps" | checks="shebang symlinks paths stripped desktopfileutils sharedmimeinfo" | ||||
checks="$checks suidfiles libtool libperl prefixvar baselibs terminfo" | |||||
checks="$checks proxydeps" | |||||
ret=0 | ret=0 | ||||
cd ${STAGEDIR} | cd ${STAGEDIR} | ||||
for check in ${checks}; do | for check in ${checks}; do | ||||
${check} || ret=1 | ${check} || ret=1 | ||||
done | done | ||||
exit ${ret} | exit ${ret} |