Merge pull request #3793 from MilhouseVH/binary_patching

Enable binary patching
This commit is contained in:
Stefan Saraev 2015-01-16 11:58:18 +02:00
commit f42c082cf2

View File

@ -143,8 +143,12 @@ for i in $PKG_DIR/patches/$PKG_NAME-*.patch \
if [ -f "$i" ]; then if [ -f "$i" ]; then
printf "%${BUILD_INDENT}c ${boldgreen}APPLY PATCH${endcolor} ${boldwhite}${PATCH_DESC}${endcolor} $i\n" ' '>&$SILENT_OUT printf "%${BUILD_INDENT}c ${boldgreen}APPLY PATCH${endcolor} ${boldwhite}${PATCH_DESC}${endcolor} $i\n" ' '>&$SILENT_OUT
if [ -n "$(grep -E '^GIT binary patch$' $i)" ]; then
cat $i | git apply --directory=`echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 --verbose --whitespace=nowarn >&$VERBOSE_OUT
else
cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
fi fi
fi
done done
if [ "$(type -t post_patch)" = "function" ]; then if [ "$(type -t post_patch)" = "function" ]; then