File: GetStandaloneDeps.sh

package info (click to toggle)
ghdl 2.0.0%2Bdfsg-6.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 72,852 kB
  • sloc: ada: 238,924; vhdl: 196,551; ansic: 24,457; python: 17,483; sh: 11,399; cpp: 2,283; makefile: 1,440; pascal: 516; exp: 40; asm: 25
file content (17 lines) | stat: -rw-r--r-- 388 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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