# HG changeset patch # User Rob Landley # Date 1265413679 21600 # Node ID cfeaae1c55ed23134856b3528b9e799e851dc929 # Parent cfa6262528f3045292508f683286faff76c432d4 Allow patchdir to be overridden. diff -r cfa6262528f3 -r cfeaae1c55ed sources/functions.sh --- a/sources/functions.sh Fri Feb 05 10:33:06 2010 -0600 +++ b/sources/functions.sh Fri Feb 05 17:47:59 2010 -0600 @@ -227,7 +227,7 @@ SHALIST=$(cat "$SHA1FILE" 2> /dev/null) if [ ! -z "$SHALIST" ] then - for i in "$SHA1TAR" $(sha1file "${SOURCES}/patches/${PACKAGE}"-* 2>/dev/null) + for i in "$SHA1TAR" $(sha1file "$PATCHDIR/${PACKAGE}"-* 2>/dev/null) do # Is this sha1 in the file? if [ -z "$(echo "$SHALIST" | sed -n "s/$i/$i/p" )" ] @@ -263,7 +263,7 @@ # Apply any patches to this package - ls "${SOURCES}/patches/${PACKAGE}"-* 2> /dev/null | sort | while read i + ls "$PATCHDIR/${PACKAGE}"-* 2> /dev/null | sort | while read i do if [ -f "$i" ] then diff -r cfa6262528f3 -r cfeaae1c55ed sources/include.sh --- a/sources/include.sh Fri Feb 05 10:33:06 2010 -0600 +++ b/sources/include.sh Fri Feb 05 17:47:59 2010 -0600 @@ -18,6 +18,7 @@ TOP=`pwd` export SOURCES="$TOP/sources" export SRCDIR="$TOP/packages" +export PATCHDIR="$SOURCES/patches" export BUILD="$TOP/build" export HOSTTOOLS="$BUILD/host" export WRAPDIR="$BUILD/wrapdir"