#!/bin/bash build() { find "$BUILDROOT" -type f -perm -u+w -print0 2>/dev/null | while read -d '' bin; do case $(file -bi "$bin") in *application/x-sharedlib*) # Libraries (.so) strip --strip-unneeded "$bin" ;; *application/x-archive*) # Libraries (.a) strip --strip-debug "$bin" ;; *application/x-executable*) # Binaries strip --strip-all "$bin" ;; esac done } help() { cat <