Invert logic, first search for find as most people will build under Linux
[openwrt/openwrt.git] / tools / ipkg-utils / patches / 110-buildpackage.patch
1 diff -ruN ipkg-utils-1.7-old/ipkg-buildpackage ipkg-utils-1.7-new/ipkg-buildpackage
2 --- ipkg-utils-1.7-old/ipkg-buildpackage 2001-07-26 17:36:36.000000000 +0200
3 +++ ipkg-utils-1.7-new/ipkg-buildpackage 2004-07-05 19:46:24.000000000 +0200
4 @@ -30,8 +30,9 @@
5
6 set -e
7
8 -#SCRIPTDIR=/usr/local/bin
9 -SCRIPTDIR=/other/kurth/ipaq-dev/familiar/dist/ipkg/util/
10 +SCRIPTDIR=/usr/local/bin
11 +
12 +IPKG_BUILD_OPTIONS=$*
13
14 SCRIPTNAME=`basename $0`
15
16 @@ -212,7 +213,7 @@
17 # build the ipk package
18 owd=`pwd`
19 cd ..
20 -ipkg-build /tmp/${pkg} || exit 1
21 +ipkg-build $IPKG_BUILD_OPTIONS /tmp/${pkg} || exit 1
22
23 rm -rf /tmp/${pkg}
24