ldd.cygwin.i386 372 B

12345678910111213141516171819202122
  1. #!/bin/env sh
  2. : cygwin.i386 ldd -- how many ways does this confirm the Windows bias?
  3. for f
  4. do case $f in
  5. *.exe) ;;
  6. *) f=$f.exe ;;
  7. esac
  8. p=$(type $f)
  9. case $p in
  10. *" not found"*)
  11. ;;
  12. *) p=${p##* }
  13. case $p in
  14. ?*) f=$p ;;
  15. esac
  16. ;;
  17. esac
  18. cygcheck $(cygpath -aw $f) |
  19. for w in $(sed -e 's/^[[:space:]]*//' -e '/^$/d' -e '/^Use /d')
  20. do cygpath -u "$w"
  21. done
  22. done