summaryrefslogtreecommitdiffhomepage
path: root/subr/post_strip.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-09-06 16:23:29 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2017-09-06 16:23:29 +0200
commit378facbd9fd64c357a7a38c0130893e3b807ff71 (patch)
treece7289e1b77414dc7dd0c6fca8acdd74694a3122 /subr/post_strip.subr
parentd080d13396454fe3871f393bf442d3e157c7d2e0 (diff)
downloadmidipix_build-378facbd9fd64c357a7a38c0130893e3b807ff71.tar.bz2
midipix_build-378facbd9fd64c357a7a38c0130893e3b807ff71.tar.xz
build.sh, subr/{post_strip,pkg_{install_pre,strip}.subr: strip(1) after install for each package to save disk space.
vars/build.vars, vars/install_....vars: install coreutils_flavour_minipix w/ newly added ${TARGET}-install-strip to save disk space.
Diffstat (limited to 'subr/post_strip.subr')
-rw-r--r--subr/post_strip.subr27
1 files changed, 0 insertions, 27 deletions
diff --git a/subr/post_strip.subr b/subr/post_strip.subr
deleted file mode 100644
index b1d5d01b..00000000
--- a/subr/post_strip.subr
+++ /dev/null
@@ -1,27 +0,0 @@
-#
-# set -o errexit -o noglob are assumed.
-#
-
-postp_strip_files() {
- local _pname="${1}";
- for __ in $(find "${_pname}" -perm -0100 \( -type f -or -type l \)); do
- if objdump -sj .debug_info "${__}" >/dev/null 2>&1; then
- log_msg vnfo "${TARGET}-strip ${__}";
- set +o errexit; ${TARGET}-strip ${__}; set -o errexit;
- fi;
- done;
-};
-
-post_strip() {
- local __;
- if [ "${BUILD}" = release ]; then
- log_msg info "Stripping ${PREFIX_NATIVE}/bin...";
- postp_strip_files ${PREFIX_NATIVE}/bin;
- fi;
- if [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ]; then
- log_msg info "Stripping ${PREFIX_MINIPIX}/bin...";
- postp_strip_files ${PREFIX_MINIPIX}/bin;
- fi;
-};
-
-# vim:filetype=sh