diff options
Diffstat (limited to 'project/setup')
| -rw-r--r-- | project/setup/cygwin-copy.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/project/setup/cygwin-copy.sh b/project/setup/cygwin-copy.sh index 3ce6c46..6e47c33 100644 --- a/project/setup/cygwin-copy.sh +++ b/project/setup/cygwin-copy.sh @@ -56,9 +56,18 @@ done #------------------------------------------------------------------------------ # copy needed cygwin dlls +CYGCHECK="$( which cygcheck 2>/dev/null )" + for tool in $CYGWIN_TOOLS do - ldd "$BIN_PATH/$tool.exe" | grep -F "=> $CYGWIN_DIR/" | awk '{print $1}' + if [[ $CYGCHECK ]] + then + "$CYGCHECK" "$BIN_PATH/$tool.exe" \ + | grep -E 'cygwin.*\\bin\\.*\.dll' \ + | sed 's/.*\\//' + else + ldd "$BIN_PATH/$tool.exe" | grep -F "=> $CYGWIN_DIR/" | awk '{print $1}' + fi done | sort | uniq | while read dll do cp --preserve=time "$CYGWIN_DIR/$dll" "$BIN_PATH" || exit 1 |
