Mercurial > minori
comparison scripts/win32/deploy_build.sh @ 244:3a4aa9b4814c
scripts: convert to use posix shell
it's not like we even need bash anyway
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Mon, 22 Jan 2024 22:19:39 -0800 |
parents | ed5ab3896666 |
children | 699a20c57dc8 |
comparison
equal
deleted
inserted
replaced
243:ed5ab3896666 | 244:3a4aa9b4814c |
---|---|
9 | 9 |
10 GetNeededLibraries() { | 10 GetNeededLibraries() { |
11 # do not run this on untrusted executables. | 11 # do not run this on untrusted executables. |
12 # see: ldd(1) | 12 # see: ldd(1) |
13 ldd "$1" | while IFS="" read -r dependency; do | 13 ldd "$1" | while IFS="" read -r dependency; do |
14 fields=($dependency) | 14 lib="$(cut -d' ' -f3 <<< $dependency)" |
15 lib="${fields[2]}" | |
16 if [[ "$lib" == /"${MSYSTEM,,}"/* ]]; then | 15 if [[ "$lib" == /"${MSYSTEM,,}"/* ]]; then |
17 echo "$lib" | 16 echo "$lib" |
18 fi | 17 fi |
19 done | 18 done |
20 } | 19 } |
20 | |
21 | 21 |
22 if [ -d "$DIR" ]; then | 22 if [ -d "$DIR" ]; then |
23 rm -r "$DIR" | 23 rm -r "$DIR" |
24 fi | 24 fi |
25 | 25 |