mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-13 22:51:31 +01:00
21 lines
710 B
Bash
Executable File
21 lines
710 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# AUTHOR: odidev
|
|
# DATE: 2021-07-20
|
|
# DESCRIPTION: The wheels are cross compiled and we can't be repair in currnet
|
|
# environment. So, better to repair in manylinux container. So,
|
|
# we need to run BEFORE_ALL again in target manylinux contaner. So,
|
|
# instead of running BEFORE_ALL again we can copy the stored files.
|
|
# INPUT: $1 --> Dependeicies install path on host machine with respect to
|
|
# container
|
|
# $2 --> Wheel repair command
|
|
|
|
install_dir="$1"
|
|
|
|
for file in `find $install_dir -type f`; do
|
|
install_path=$(echo ${file} | sed 's/^.*usr/\/usr/')
|
|
install -m 0644 -D ${file} ${install_path}
|
|
done
|
|
|
|
$2
|