2009-02-21 16:46:03 +02:00
|
|
|
--- a/ipkg-build
|
|
|
|
+++ b/ipkg-build
|
2008-08-09 00:33:53 +03:00
|
|
|
@@ -10,7 +10,8 @@
|
|
|
|
set -e
|
|
|
|
|
|
|
|
version=1.0
|
|
|
|
-
|
2008-08-09 00:48:15 +03:00
|
|
|
+FIND="$(which find)"
|
|
|
|
+FIND="${FIND:-$(which gfind)}"
|
2008-08-09 00:33:53 +03:00
|
|
|
TAR="${TAR:-$(which tar)}"
|
|
|
|
|
|
|
|
ipkg_extract_value() {
|
2009-02-21 16:46:03 +02:00
|
|
|
@@ -49,7 +50,7 @@ pkg_appears_sane() {
|
2008-08-09 00:33:53 +03:00
|
|
|
|
|
|
|
PKG_ERROR=0
|
|
|
|
|
|
|
|
- cvs_dirs=`find . -name 'CVS'`
|
|
|
|
+ cvs_dirs=`$FIND . -name 'CVS'`
|
|
|
|
if [ -n "$cvs_dirs" ]; then
|
|
|
|
if [ "$noclean" = "1" ]; then
|
|
|
|
echo "*** Warning: The following CVS directories where found.
|
2009-02-21 16:46:03 +02:00
|
|
|
@@ -62,7 +63,7 @@ You probably want to remove them: " >&2
|
2008-08-09 00:33:53 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
- tilde_files=`find . -name '*~'`
|
|
|
|
+ tilde_files=`$FIND . -name '*~'`
|
|
|
|
if [ -n "$tilde_files" ]; then
|
|
|
|
if [ "$noclean" = "1" ]; then
|
|
|
|
echo "*** Warning: The following files have names ending in '~'.
|
2009-02-21 16:46:03 +02:00
|
|
|
@@ -75,7 +76,7 @@ You probably want to remove them: " >&2
|
2008-08-09 00:33:53 +03:00
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
- large_uid_files=`find . -uid +99 || true`
|
|
|
|
+ large_uid_files=`$FIND . -uid +99 || true`
|
|
|
|
|
|
|
|
if [ "$ogargs" = "" ] && [ -n "$large_uid_files" ]; then
|
|
|
|
echo "*** Warning: The following files have a UID greater than 99.
|