From 05e6185f7740f3acef556ba39cff95139bd7130d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 6 Feb 2017 01:20:04 +0100 Subject: build.sh, {subr,vars}/*: general cleanup. --- subr/build.subr | 3 +++ subr/post_strip.subr | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'subr') diff --git a/subr/build.subr b/subr/build.subr index 698a71e8..35b8a22f 100644 --- a/subr/build.subr +++ b/subr/build.subr @@ -21,6 +21,9 @@ build_fileop() { elif [ "${_op}" = ln_symbolic ]; then log_msg varn "Linking \`${1}' to \`${2}' w/ -fs"; [ \( -n "${1}" \) -a \( -n "${2}" \) ] && ln -fs -- "${1}" "${2}"; + elif [ "${_op}" = mv ]; then + log_msg varn "Moving \`${1}' to \`${2}' w/ -fs"; + [ \( -n "${1}" \) -a \( -n "${2}" \) ] && mv -f -- "${1}" "${2}"; elif [ "${_op}" = mkdir ]\ || [ "${_op}" = rm ]; then while [ ${#} -gt 0 ]; do diff --git a/subr/post_strip.subr b/subr/post_strip.subr index 5225021b..fd045561 100644 --- a/subr/post_strip.subr +++ b/subr/post_strip.subr @@ -4,8 +4,7 @@ post_strip() { local __; - if [ ${BUILD_SCRIPT_RC:-0} -eq 0 ]\ - && [ "${BUILD}" = release ]; then + if [ "${BUILD}" = release ]; then for __ in $(find ${PREFIX_NATIVE}/bin -perm -0100 \( -type f -or -type l \)); do if objdump -sj .debug_info >/dev/null 2>&1; then log_msg vnfo "${PKG_TARGET}-strip ${__}"; -- cgit v1.2.3