summaryrefslogtreecommitdiffhomepage
path: root/subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-02-06 01:20:04 +0100
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2017-02-06 01:20:04 +0100
commit05e6185f7740f3acef556ba39cff95139bd7130d (patch)
tree13d958e045edb28dab3cb225bc244c35acb27db1 /subr
parent36ab9378686ad6f3783f26696615e33e170e235f (diff)
downloadmidipix_build-05e6185f7740f3acef556ba39cff95139bd7130d.tar.bz2
midipix_build-05e6185f7740f3acef556ba39cff95139bd7130d.tar.xz
build.sh, {subr,vars}/*: general cleanup.
Diffstat (limited to 'subr')
-rw-r--r--subr/build.subr3
-rw-r--r--subr/post_strip.subr3
2 files changed, 4 insertions, 2 deletions
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 ${__}";