aboutsummaryrefslogtreecommitdiffstats
path: root/tools/ipkg-utils/patches/160-find.patch
blob: 04a2ad4410af7696f060edc1564f7e9c579518d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
--- /tmp/ipkg-build	2008-08-01 09:36:41.000000000 +0200
+++ ipkg-utils-1.7/ipkg-build	2008-08-06 15:04:52.000000000 +0200
@@ -10,7 +10,8 @@
 set -e
 
 version=1.0
-
+FIND="$(which find)"
+FIND="${FIND:-$(which gfind)}"
 TAR="${TAR:-$(which tar)}"
 
 ipkg_extract_value() {
@@ -49,7 +50,7 @@
 
 	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.
@@ -62,7 +63,7 @@
 	    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 '~'.
@@ -75,7 +76,7 @@
 	    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.