diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-07-19 01:31:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-19 01:31:49 +0200 |
commit | 00667c1805c96c112c0cc4874351354d335af52f (patch) | |
tree | 9b14fbbb03e27e68aedb1f539b2f5cfb6f93018c /scripts/msys2-mcode | |
parent | d6c71f92412036657c423572e34550b0a733c3fc (diff) | |
parent | ef4bcbb15afd7c1cde9432d192be15c184cac629 (diff) | |
download | ghdl-00667c1805c96c112c0cc4874351354d335af52f.tar.gz ghdl-00667c1805c96c112c0cc4874351354d335af52f.tar.bz2 ghdl-00667c1805c96c112c0cc4874351354d335af52f.zip |
ci: generate standalone zipfiles and add CPython jobs
Diffstat (limited to 'scripts/msys2-mcode')
-rw-r--r-- | scripts/msys2-mcode/GetStandaloneDeps.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/msys2-mcode/GetStandaloneDeps.sh b/scripts/msys2-mcode/GetStandaloneDeps.sh new file mode 100644 index 000000000..a5720fc5a --- /dev/null +++ b/scripts/msys2-mcode/GetStandaloneDeps.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +GetMinGWLibraries() { + ldd "${MSYSTEM_PREFIX}/$1" | while IFS="" read -r dependency; do + fields=($dependency) + dep="${fields[2]}" + if [[ "$dep" == /"${MSYSTEM,,}"/* ]]; then + echo "$dep" + GetMinGWLibraries "${dep#"/${MSYSTEM,,}/"}" + fi + done +} + +for dep in $(GetMinGWLibraries "lib/libghdl-2_0_0_dev.dll"); do + echo "$dep" + cp "$dep" ./ +done |