diff options
author | umarcor <unai.martinezcorral@ehu.eus> | 2021-06-29 13:39:41 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-07-18 23:53:08 +0200 |
commit | 914a44d996f6d8cf4b8db400391f39a99a14e8cd (patch) | |
tree | df564d6374ff979e5e56cb585b4b59023f5a7f89 /scripts/msys2-mcode | |
parent | d60d674c8d83573286766ffbbaa160f1bd08360c (diff) | |
download | ghdl-914a44d996f6d8cf4b8db400391f39a99a14e8cd.tar.gz ghdl-914a44d996f6d8cf4b8db400391f39a99a14e8cd.tar.bz2 ghdl-914a44d996f6d8cf4b8db400391f39a99a14e8cd.zip |
ci: generate standalone zipfiles
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 |