diff options
author | Pavel Vatagin <pavelvat@gmail.com> | 2016-03-13 13:56:51 (GMT) |
---|---|---|
committer | Pavel Vatagin <pavelvat@gmail.com> | 2016-03-20 21:25:04 (GMT) |
commit | 2db02c13183c002476c4d2eda92ae3e106f47d87 (patch) | |
tree | 8638b426b29194416ca2622a69b2ff01d8162e74 /tools | |
parent | 8ae971a5e9e37f7f7faabcb0868585308246d3af (diff) | |
download | mxe-2db02c13183c002476c4d2eda92ae3e106f47d87.zip mxe-2db02c13183c002476c4d2eda92ae3e106f47d87.tar.gz mxe-2db02c13183c002476c4d2eda92ae3e106f47d87.tar.bz2 |
copydlldeps.sh: fix #1226 (case insensitive)
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/copydlldeps.sh | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/tools/copydlldeps.sh b/tools/copydlldeps.sh index 23b31ca..fa0b821 100755 --- a/tools/copydlldeps.sh +++ b/tools/copydlldeps.sh @@ -356,21 +356,27 @@ fi for dll in `echo $alldeps | tr '\n' ' '`; do counter=0 + lower_dll=`echo $dll | tr '[:upper:]' '[:lower:]'` + if [ $lower_dll == $dll ]; then + lower_dll="" + fi for curFolder in $( echo "${str_srcDirList}" | tr -s ' ' | tr ' ' '\n'); do if [ "$logLevel" -gt 1 ]; then echo "search for dll $dll in curFolder $curFolder" sleep 1 - fi - if [ -e "${curFolder}/${dll}" ]; then - counter=$(expr $counter + 1) - if [ $opmode == "copy" ]; then - cp -dpRxv "${curFolder}/${dll}" "$destdir" - elif [ $opmode == "print" ]; then - echo "found $dll in: ${curFolder}/${dll}" - else - echo "unknown opmode=$opmode" - fi - fi + fi + for the_dll in $dll $lower_dll; do + if [ -e "${curFolder}/${the_dll}" ]; then + counter=$(expr $counter + 1) + if [ $opmode == "copy" ]; then + cp -dpRxv "${curFolder}/${the_dll}" "$destdir" + elif [ $opmode == "print" ]; then + echo "found $dll in: ${curFolder}/${the_dll}" + else + echo "unknown opmode=$opmode" + fi + fi + done done if [ $counter == 0 ]; then echo "Warning: \"$dll\" not found. \$counter=$counter." >&2 |