summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_strip.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-20 21:45:21 +0000
committerLucio Andrés Illanes Albornoz (arab, vxp) <lucio@lucioillanes.de>2017-11-21 00:51:43 +0000
commitc27beab66023847435fb88cd5cc75916dca37057 (patch)
treec43c23133f5b837925785d5501aa4cff14980415 /subr/pkg_strip.subr
parentd01c0269b8e5e467f82cd28392579c4c43fe63bc (diff)
downloadmidipix_build-c27beab66023847435fb88cd5cc75916dca37057.tar.bz2
midipix_build-c27beab66023847435fb88cd5cc75916dca37057.tar.xz
Refactors build steps along the sequence {setup,fetch,configure,build,install}.
subr/mode_check_updates.subr: seperated into check_updates.sh. subr/post_{copy_etc,sha256sums,tarballs}.subr: absorbed into `dist' target.
Diffstat (limited to 'subr/pkg_strip.subr')
-rw-r--r--subr/pkg_strip.subr37
1 files changed, 0 insertions, 37 deletions
diff --git a/subr/pkg_strip.subr b/subr/pkg_strip.subr
deleted file mode 100644
index 9f6ce31f..00000000
--- a/subr/pkg_strip.subr
+++ /dev/null
@@ -1,37 +0,0 @@
-#
-# set -o errexit -o noglob are assumed.
-#
-
-pkgp_strip_tree() {
- local _tree_old="${1}" _tree_root="${2}";
- local _tree_new="${_tree_old%.*}.new" _tree_diff="${_tree_old%.*}.diff";
- if [ ! -e "${_tree_old}" ] \
- || [ ! -e "${_tree_root}" ]; then
- return;
- fi;
- find "${_tree_root}" -perm /a=x \( -type f -or -type l \) > "${_tree_new}";
- set +o errexit;
- for _pname in $(diff -u "${_tree_old}" "${_tree_new}" |\
- sed -n '3,${/^+/s/^+//p}'); do
- if objdump -sj .debug_info "${_pname}" >/dev/null 2>&1; then
- log_msg info "Stripping ${_pname}...";
- log_msg vnfo "${TARGET}-strip ${_pname}";
- ${TARGET}-strip ${_pname};
- fi;
- done;
- build_fileop rm "${_tree_old}" "${_tree_new}" "${_tree_diff}";
- set -o errexit;
-};
-
-pkg_strip() {
- if [ "${PKG_NAME%flavour_minipix}" != "${PKG_NAME}" ] \
- && [ ${ARG_DEBUG_MINIPIX:-0} -eq 0 ]; then
- pkgp_strip_tree "${WORKDIR}/.stat_minipix.old" \
- "${PREFIX_MINIPIX}";
- elif [ "${BUILD}" = release ]; then
- pkgp_strip_tree "${WORKDIR}/.stat_native.old" \
- "${PREFIX_NATIVE}/bin";
- fi;
-};
-
-# vim:filetype=sh