160-find.patch 1013 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- a/ipkg-build
  2. +++ b/ipkg-build
  3. @@ -10,7 +10,8 @@
  4. set -e
  5. version=1.0
  6. -
  7. +FIND="$(which find)"
  8. +FIND="${FIND:-$(which gfind)}"
  9. TAR="${TAR:-$(which tar)}"
  10. ipkg_extract_value() {
  11. @@ -49,7 +50,7 @@ pkg_appears_sane() {
  12. PKG_ERROR=0
  13. - cvs_dirs=`find . -name 'CVS'`
  14. + cvs_dirs=`$FIND . -name 'CVS'`
  15. if [ -n "$cvs_dirs" ]; then
  16. if [ "$noclean" = "1" ]; then
  17. echo "*** Warning: The following CVS directories where found.
  18. @@ -62,7 +63,7 @@ You probably want to remove them: " >&2
  19. fi
  20. fi
  21. - tilde_files=`find . -name '*~'`
  22. + tilde_files=`$FIND . -name '*~'`
  23. if [ -n "$tilde_files" ]; then
  24. if [ "$noclean" = "1" ]; then
  25. echo "*** Warning: The following files have names ending in '~'.
  26. @@ -75,7 +76,7 @@ You probably want to remove them: " >&2
  27. fi
  28. fi
  29. - large_uid_files=`find . -uid +99 || true`
  30. + large_uid_files=`$FIND . -uid +99 || true`
  31. if [ "$ogargs" = "" ] && [ -n "$large_uid_files" ]; then
  32. echo "*** Warning: The following files have a UID greater than 99.