From: Daniele Varrazzo Date: Thu, 11 Nov 2021 21:56:16 +0000 (+0100) Subject: strip_wheel: pass script parameters to the strip command X-Git-Tag: 3.0.4~2^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4610f2e3bb9cbfdf5eae4ef5fc6cfcffb778c9e0;p=thirdparty%2Fpsycopg.git strip_wheel: pass script parameters to the strip command --- diff --git a/tools/build/strip_wheel.sh b/tools/build/strip_wheel.sh index a5ca605c0..fc129472b 100755 --- a/tools/build/strip_wheel.sh +++ b/tools/build/strip_wheel.sh @@ -16,9 +16,11 @@ set -euo pipefail set -x wheel=$(realpath "$1") +shift + tmpdir=$(mktemp -d) trap "rm -r ${tmpdir}" EXIT unzip -d "${tmpdir}" "${wheel}" -find "${tmpdir}" -name \*.so | xargs strip +find "${tmpdir}" -name \*.so | xargs strip "$@" (cd "${tmpdir}" && zip -fr ${wheel} *)