[PATCH 1/4] buildscript: allow feed without url
Tim Niemeyer
tim.niemeyer at mastersword.de
So Nov 29 18:02:47 CET 2015
Signed-off-by: Tim Niemeyer <tim.niemeyer at mastersword.de>
---
buildscript | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/buildscript b/buildscript
index a026f9a..b7b496d 100755
--- a/buildscript
+++ b/buildscript
@@ -80,22 +80,24 @@ get_source() {
local URL=${FEED[1]}
local REV=${FEED[2]}
- checkout_git "$NAME" "$URL" "$REV"
-
- # Patches for feeds could be stored in known directories like build_patches/$NAME/
- # That way multiple patches for one feed could be supported
- count=3
- while [ "x${FEED[count]}" != "x" ]
- do
- local PATCH=${FEED[count]}
- if [ ! -z "$PATCH" ] ; then
- echo "Patching $PATCH"
- git -C "$NAME" am --whitespace=nowarn "$PATCH"
- else
- echo "Warning, $PATCH not found."
- fi
- count=$(( count + 1 ))
- done
+ if [ -n "$URL" -a -n "$REV" ]; then
+ checkout_git "$NAME" "$URL" "$REV"
+
+ # Patches for feeds could be stored in known directories like build_patches/$NAME/
+ # That way multiple patches for one feed could be supported
+ count=3
+ while [ "x${FEED[count]}" != "x" ]
+ do
+ local PATCH=${FEED[count]}
+ if [ ! -z "$PATCH" ] ; then
+ echo "Patching $PATCH"
+ git -C "$NAME" am --whitespace=nowarn "$PATCH"
+ else
+ echo "Warning, $PATCH not found."
+ fi
+ count=$(( count + 1 ))
+ done
+ fi
done
cd .. # packages
--
2.1.4
Mehr Informationen über die Mailingliste franken-dev