forked from freifunk-franken/firmware
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:
parent
6ba8184a2b
commit
6ce8cc5489
|
@ -103,7 +103,7 @@ get_source() {
|
||||||
count=3
|
count=3
|
||||||
while [ "x${FEED[count]}" != "x" ]
|
while [ "x${FEED[count]}" != "x" ]
|
||||||
do
|
do
|
||||||
local PATCH=${FEED[count]}
|
local PATCH="../../../build_patches/${NAME}/${FEED[count]}"
|
||||||
if [ ! -z "$PATCH" ] ; then
|
if [ ! -z "$PATCH" ] ; then
|
||||||
echo "Patching $PATCH"
|
echo "Patching $PATCH"
|
||||||
git -C "$NAME" am --whitespace=nowarn "$PATCH"
|
git -C "$NAME" am --whitespace=nowarn "$PATCH"
|
||||||
|
|
Loading…
Reference in New Issue