buildscript: simplify the use of patches for feeds

Do this by applying the path within the patch function.

Signed-off-by: Tim Niemeyer <tim@tn-x.org>
Tested-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Tim Niemeyer 2017-09-17 22:05:11 +02:00
parent 6ba8184a2b
commit 6ce8cc5489
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ get_source() {
count=3
while [ "x${FEED[count]}" != "x" ]
do
local PATCH=${FEED[count]}
local PATCH="../../../build_patches/${NAME}/${FEED[count]}"
if [ ! -z "$PATCH" ] ; then
echo "Patching $PATCH"
git -C "$NAME" am --whitespace=nowarn "$PATCH"