Strategies for finding binary dependencies
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

unzip-wheels: new program

+24
+24
bin/unzip-wheels
··· 1 + #!/bin/sh -u 2 + # © Vlad-Stefan Harbuz <vlad@vlad.website> 3 + # SPDX-License-Identifier: Apache-2.0 4 + 5 + if [ $# -lt 2 ] || [ $1 == "--help" ]; then 6 + printf "Usage: dl-wheels.sh <wheel_dir> <unzipped_wheel_dir>\n" 7 + printf "Example: dl-wheels.sh /home/me/wheels/ /home/me/wheels-unzipped/\n" 8 + exit 1 9 + fi 10 + 11 + wheel_dir=$(realpath "$1") 12 + unzipped_wheel_dir=$(realpath "$2") 13 + 14 + printf "Unzipping wheels from: %s\n" "${wheel_dir}" 15 + printf "Unzipping wheels to: %s\n" "${unzipped_wheel_dir}" 16 + printf "\n" 17 + 18 + cd "$wheel_dir" 19 + 20 + for wheel_path in "${wheel_dir}"/*; do 21 + wheel_name=$(basename "${wheel_path}") 22 + mkdir -p "${unzipped_wheel_dir}/${wheel_name}" 23 + unzip -d "${unzipped_wheel_dir}/${wheel_name}" "${wheel_path}" 24 + done